public interface QueryExecute<T> extends QueryResultIterable<T>
Modifier and Type | Method and Description |
---|---|
LoadResult<T> |
first()
Gets the first entity in the result set.
|
QueryResultIterable<T> |
iterable()
Starts an asynchronous query which will return entities.
|
List<T> |
list()
Execute the query and get the results as a List.
|
String |
toString()
Generates a string that consistently and uniquely specifies this query.
|
iterator
forEach, spliterator
QueryResultIterable<T> iterable()
Starts an asynchronous query which will return entities.
Note that since the Query
List<T> list()
Execute the query and get the results as a List. The list will be equivalent to a simple ArrayList; you can iterate through it multiple times without incurring additional datastore cost.
Note that you must be careful about limit()ing the size of the list returned; you can easily exceed the practical memory limits of Appengine by querying for a very large dataset.
LoadResult<T> first()
String toString()
Generates a string that consistently and uniquely specifies this query. There is no way to convert this string back into a query and there is no guarantee that the string will be consistent across versions of Objectify.
In particular, this value is useful as a key for a simple memcache query cache.
Copyright © 2018. All rights reserved.