| Constructor and Description |
|---|
EmptyQuery() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<R> |
findAll()
Get all of the results in the
Collection |
R |
findFirst()
Get the first result or
null if no results have been found. |
boolean |
forEach(Processor<? super R> consumer)
Process search results one-by-one.
|
AsyncFuture<java.lang.Boolean> |
forEachAsync(Processor<? super R> consumer) |
static <T> Query<T> |
getEmptyQuery() |
java.util.Iterator<R> |
iterator() |
R [] |
toArray(R [] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallMatch, allowParallelProcessing, anyMatch, filtering, flatMapping, mappingpublic java.util.Collection<R> findAll()
QueryCollectionpublic R findFirst()
Querynull if no results have been found.public boolean forEach(Processor<? super R> consumer)
Queryconsumer passed.
The consumer might be called on different threads, but by default these calls are mutually exclusive, so no additional
synchronization inside consumer is necessary. If you need to process results in parallel, run forEach() on
the result of Query.allowParallelProcessing().public AsyncFuture<java.lang.Boolean> forEachAsync(Processor<? super R> consumer)
forEachAsync in interface Query<R>public java.util.Iterator<R> iterator()
iterator in interface java.lang.Iterable<R>public static <T> Query<T> getEmptyQuery()