Modifier and Type | Method and Description |
---|---|
List<Key<T>> |
asKeyList()
Execute the query and get the results (as a
List<Key<T>> ) This method is provided as a convenience; |
List<T> |
asList()
Execute the query and get the results (as a
List<T> ). |
long |
countAll()
Count the total number of values in the result, ignoring limit and offset.
|
MorphiaIterator<T,T> |
fetch()
Execute the query and get the results.
|
MorphiaIterator<T,T> |
fetchEmptyEntities()
Execute the query and get only the ids of the results.
|
MorphiaKeyIterator<T> |
fetchKeys()
Execute the query and get the keys for the objects.
|
T |
get()
Gets the first entity in the result set.
|
Key<T> |
getKey()
Get the key of the first entity in the result set.
|
MorphiaIterator<T,T> |
tail()
Calls
tail(true); |
MorphiaIterator<T,T> |
tail(boolean awaitData)
Returns an tailing iterator over a set of elements of type T.
|
forEach, iterator, spliterator
T get()
Query
offset value.Key<T> getKey()
Query
offset value.List<T> asList()
Execute the query and get the results (as a List<T>
).
This method is provided as a convenience; List<T>
results = new ArrayList<T>; for(T ent : fetch()) results.add(ent); return results;
List<Key<T>> asKeyList()
List<Key<T>>
) This method is provided as a convenience;MorphiaIterator<T,T> fetch()
MorphiaIterator<T,T> fetchEmptyEntities()
MorphiaKeyIterator<T> fetchKeys()
long countAll()
Count the total number of values in the result, ignoring limit and offset.
MorphiaIterator<T,T> tail()
tail(true);
tail(boolean)
MorphiaIterator<T,T> tail(boolean awaitData)
Copyright © 2016. All rights reserved.