Class AggregationResults (2.19.0)

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

AggregationResults(List<AggregationResult> aggregationResults, Timestamp readTime, ExplainMetrics explainMetrics)

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

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

getExplainMetrics()

public Optional<ExplainMetrics> getExplainMetrics()

Returns ExplainMetrics if ExplainOptions were enabled. Otherwise, returns null.

Returns
TypeDescription
Optional<ExplainMetrics>

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