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 anAggregationQuery
query submission. Contains a List<AggregationResult
> and readTimeTimestamp
in 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 boolean
equals(Object o)
AggregationResult
get(int index)
com.google.cloud.Timestamp
getReadTime()
Returns read timestamp this result batch was returned from.int
hashCode()
Iterator<AggregationResult>
iterator()
ReturnsIterator
for underlying List<AggregationResult
>.int
size()
-
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()
ReturnsIterator
for underlying List<AggregationResult
>.- Specified by:
iterator
in 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.
-
-