Class AggregationResults (2.18.5)

public class AggregationResults implements 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.

Inheritance

Object > AggregationResults

Constructors

AggregationResults(List<AggregationResult> aggregationResults, Timestamp readTime)

public AggregationResults(List<AggregationResult> aggregationResults, Timestamp readTime)
Parameters
NameDescription
aggregationResultsList<AggregationResult>
readTimecom.google.cloud.Timestamp

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

get(int index)

public AggregationResult get(int index)
Parameter
NameDescription
indexint
Returns
TypeDescription
AggregationResult

getReadTime()

public Timestamp getReadTime()

Returns read timestamp this result batch was returned from.

Returns
TypeDescription
com.google.cloud.Timestamp

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

iterator()

public Iterator<AggregationResult> iterator()

Returns Iterator for underlying List<AggregationResult>.

Returns
TypeDescription
Iterator<AggregationResult>

size()

public int size()
Returns
TypeDescription
int