Wednesday, March 17, 2010

Instantiating query object

Constructor of the Query class has default anytype parameter named _source. To my knowledge there are four different ways to use it:
  1. Instantiating an empty query – no parameter value should be specified:
    Query q = new Query();

  2. Instantiating a query based on the AOT query:
    Query q = new Query(querystr(Alertsetup));

  3. Instantiating a query as the copy of another query:
    Query q1 = new Query();
    Query q2 = new Query(q1);

  4. Instantiating a query from the container with the packed query
    Query q1 = new Query();
    Query q2 = new Query(q1.pack());

Is there anything else that can be used as a source for constructing a query?

11 comments:

  1. Query q2 = new Query(q1.pack(false));

    this is to copy a query and not the object....

    ReplyDelete
  2. Actually this parameter is an interesting one.

    Do you know the exact difference between query.pack(true) and query.pack(false). What will be copien and what not?

    ReplyDelete
  3. This is only the false self is skiddish, fearful and ungrounded.

    Direct mutualism are symbiotic relationship that are generally obligate, and non-symbiotic detox of the body that are
    just stunning in the quality of romantic detox of the body in particular.

    When Detox Of The Body mature, there are lots of marriages which fall into this group.

    Now I realize that love does no harm in any way!

    The three of us are pretty human and do our best to deliver justice to it.


    My homepage what is a healthy detox cleanse

    ReplyDelete
  4. If you how to get ex back do not know the best places to meet people outside of their race is a downgrade.


    Feel free to visit my homepage ... get him back forever by matt huston

    ReplyDelete