Class AggregationResults (2.14.2)

public class AggregationResults implements Iterable<AggregationResult>

The result of an AggregationQuery query submission. Contains a <xref uid="" data-throw-if-not-resolved="false">List<AggregationResult> and readTime Timestamp in it.

This can be used to iterate over an underlying <xref uid="List<AggregationResult>" data-throw-if-not-resolved="false">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 <xref uid="List<AggregationResult>" data-throw-if-not-resolved="false">List<AggregationResult>.

Returns
TypeDescription
Iterator<AggregationResult>

size()

public int size()
Returns
TypeDescription
int