Package com.googlecode.objectify.impl
Class QueryEngine
java.lang.Object
com.googlecode.objectify.impl.QueryEngine
Logic for dealing with queries.
- Author:
- Jeff Schnitzer invalid input: '<'[email protected]>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
queryCount
(com.google.cloud.datastore.KeyQuery query) The fundamental query count operation.<T> com.google.cloud.datastore.QueryResults<T>
queryHybrid
(com.google.cloud.datastore.KeyQuery query, int chunkSize) Perform a keys-only plus batch gets.<T> com.google.cloud.datastore.QueryResults<Key<T>>
queryKeysOnly
(com.google.cloud.datastore.KeyQuery query) Perform a keys-only query.<T> com.google.cloud.datastore.QueryResults<T>
queryNormal
(com.google.cloud.datastore.EntityQuery query, int chunkSize) A normal, non-hybrid query<T> com.google.cloud.datastore.QueryResults<T>
queryProjection
(com.google.cloud.datastore.ProjectionEntityQuery query) A projection query.
-
Constructor Details
-
QueryEngine
public QueryEngine()
-
-
Method Details
-
queryKeysOnly
public <T> com.google.cloud.datastore.QueryResults<Key<T>> queryKeysOnly(com.google.cloud.datastore.KeyQuery query) Perform a keys-only query. -
queryHybrid
public <T> com.google.cloud.datastore.QueryResults<T> queryHybrid(com.google.cloud.datastore.KeyQuery query, int chunkSize) Perform a keys-only plus batch gets. -
queryNormal
public <T> com.google.cloud.datastore.QueryResults<T> queryNormal(com.google.cloud.datastore.EntityQuery query, int chunkSize) A normal, non-hybrid query -
queryProjection
public <T> com.google.cloud.datastore.QueryResults<T> queryProjection(com.google.cloud.datastore.ProjectionEntityQuery query) A projection query. Bypasses the session entirely. -
queryCount
public int queryCount(com.google.cloud.datastore.KeyQuery query) The fundamental query count operation. This doesn't appear to be implemented in the new SDK, so we simulate with a keys-only query.
-