Class AggregationResults (2.20.2)

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
Name Description
aggregationResults List<AggregationResult>
readTime com.google.cloud.Timestamp

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

public AggregationResults(List<AggregationResult> aggregationResults, Timestamp readTime, ExplainMetrics explainMetrics)
Parameters
Name Description
aggregationResults List<AggregationResult>
readTime com.google.cloud.Timestamp
explainMetrics ExplainMetrics

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

get(int index)

public AggregationResult get(int index)
Parameter
Name Description
index int
Returns
Type Description
AggregationResult

getExplainMetrics()

public Optional<ExplainMetrics> getExplainMetrics()

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

Returns
Type Description
Optional<ExplainMetrics>

getReadTime()

public Timestamp getReadTime()

Returns read timestamp this result batch was returned from.

Returns
Type Description
com.google.cloud.Timestamp

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

iterator()

public Iterator<AggregationResult> iterator()

Returns Iterator for underlying List<AggregationResult>.

Returns
Type Description
Iterator<AggregationResult>

size()

public int size()
Returns
Type Description
int