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
ConstructorDescriptionAggregationResults
(List<AggregationResult> aggregationResults, com.google.cloud.Timestamp readTime) -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AggregationResults
public AggregationResults(List<AggregationResult> aggregationResults, com.google.cloud.Timestamp readTime)
-
-
Method Details
-
iterator
ReturnsIterator
for underlying List<AggregationResult
>.- Specified by:
iterator
in interfaceIterable<AggregationResult>
-
size
public int size() -
get
-
getReadTime
public com.google.cloud.Timestamp getReadTime()Returns read timestamp this result batch was returned from. -
equals
-
hashCode
public int hashCode()
-