Package com.google.cloud.datastore
Class AggregationResults
- java.lang.Object
-
- com.google.cloud.datastore.AggregationResults
-
- All Implemented Interfaces:
Iterable<AggregationResult>
public class AggregationResults extends Object implements Iterable<AggregationResult>
The result of anAggregationQueryquery submission. Contains a List<AggregationResult> and readTimeTimestampin it.This can be used to iterate over an underlying List<
AggregationResult> directly.
-
-
Constructor Summary
Constructors Constructor Description AggregationResults(List<AggregationResult> aggregationResults, com.google.cloud.Timestamp readTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)AggregationResultget(int index)com.google.cloud.TimestampgetReadTime()Returns read timestamp this result batch was returned from.inthashCode()Iterator<AggregationResult>iterator()ReturnsIteratorfor underlying List<AggregationResult>.intsize()-
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 Detail
-
AggregationResults
public AggregationResults(List<AggregationResult> aggregationResults, com.google.cloud.Timestamp readTime)
-
-
Method Detail
-
iterator
public Iterator<AggregationResult> iterator()
ReturnsIteratorfor underlying List<AggregationResult>.- Specified by:
iteratorin interfaceIterable<AggregationResult>
-
size
public int size()
-
get
@InternalApi public AggregationResult get(int index)
-
getReadTime
public com.google.cloud.Timestamp getReadTime()
Returns read timestamp this result batch was returned from.
-
-