Class QueryEngine

java.lang.Object
com.googlecode.objectify.impl.QueryEngine

public class QueryEngine extends Object
Logic for dealing with queries.
Author:
Jeff Schnitzer invalid input: '<'[email protected]>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.cloud.datastore.AggregationResult
    queryAggregations(com.google.cloud.datastore.StructuredQuery<?> query, com.google.cloud.datastore.aggregation.Aggregation... aggregations)
    Run an arbitrary aggregation query.
    com.google.cloud.datastore.AggregationResult
    queryAggregations(com.google.cloud.datastore.StructuredQuery<?> query, com.google.cloud.datastore.aggregation.AggregationBuilder<?>... aggregations)
    Run an arbitrary aggregation query.
    <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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.
    • queryAggregations

      public com.google.cloud.datastore.AggregationResult queryAggregations(com.google.cloud.datastore.StructuredQuery<?> query, com.google.cloud.datastore.aggregation.Aggregation... aggregations)
      Run an arbitrary aggregation query.
    • queryAggregations

      public com.google.cloud.datastore.AggregationResult queryAggregations(com.google.cloud.datastore.StructuredQuery<?> query, com.google.cloud.datastore.aggregation.AggregationBuilder<?>... aggregations)
      Run an arbitrary aggregation query.