Package com.googlecode.objectify.impl
Class QueryEngine
- java.lang.Object
-
- com.googlecode.objectify.impl.QueryEngine
-
public class QueryEngine extends Object
Logic for dealing with queries.- Author:
- Jeff Schnitzer
-
-
Constructor Summary
Constructors Constructor Description QueryEngine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
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.
-
-
-
Method Detail
-
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.
-
-