public final void setParameter(int index,
Binds a parameter.
index - parameter index
value - parameter value
public final void execute()
Execute this XEP query.
public final E executeAndFetchAll(int splitFactor)
Executes the query and fetches all data. IN case of the TCP/IP version
and on multi-core machines setting the splitFactor parameter to anything
between 3 and the total number of cores should speed up execution as the
de-serialization will be done in parallel by using splitFactor cores/threads.
Otherwise (using in-memory version or setting splitFactor to 2 or less, or when
a full schema option is selected), this is equivalent to calling Execute followed
by calling GetNext in a loop.
splitFactor - number of threads to use (should be greater than 2)
Gets all data in one fell swoop. Can be used to get all data that matches
the given query. Can be used only after a query has been executed, and
cannot be combined with calls to getNext.
IMPORTANT: This is a convenience method. For best performance, if you need to
process one element at the time only, always choose getNext instead. There is
a high cost associated with maintaining a list of objects.
Get an EventQueryIterator that can be used to iterate over query results.
Note that one should always opt to use either the iterator, or direct
approach (using getNext/updateCurrent). Mixing calls to iterator methods
and direct EventQuery methods can result in unpredicted behavior.
getIterator should be called right after a call to execute.
EventQueryIterator is an implementation of java.util.Iterator