Package com.google.cloud.datastore
Class AggregationResults
java.lang.Object
com.google.cloud.datastore.AggregationResults
- All Implemented Interfaces:
Iterable<AggregationResult>
The result of an
AggregationQuery query submission. Contains a List<AggregationResult> and readTime Timestamp in it.
This can be used to iterate over an underlying List<AggregationResult> directly.
-
Constructor Summary
ConstructorsConstructorDescriptionAggregationResults(List<AggregationResult> aggregationResults, com.google.cloud.Timestamp readTime) AggregationResults(List<AggregationResult> aggregationResults, com.google.cloud.Timestamp readTime, ExplainMetrics explainMetrics) -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AggregationResults
@BetaApi public AggregationResults(List<AggregationResult> aggregationResults, com.google.cloud.Timestamp readTime, ExplainMetrics explainMetrics) -
AggregationResults
public AggregationResults(List<AggregationResult> aggregationResults, com.google.cloud.Timestamp readTime)
-
-
Method Details
-
iterator
ReturnsIteratorfor underlying List<AggregationResult>.- Specified by:
iteratorin interfaceIterable<AggregationResult>
-
size
public int size() -
getExplainMetrics
ReturnsExplainMetricsifExplainOptionswere enabled. Otherwise, returns null. -
get
-
getReadTime
public com.google.cloud.Timestamp getReadTime()Returns read timestamp this result batch was returned from. -
equals
-
hashCode
public int hashCode()
-