Class Aggregation (2.18.5)

public abstract class Aggregation

Represents a Google Cloud Datastore Aggregation which is used with an AggregationQuery.

Inheritance

java.lang.Object > Aggregation

Static Methods

avg(String propertyReference)

public static AvgAggregation.Builder avg(String propertyReference)

Returns a AvgAggregation builder.

Parameter
NameDescription
propertyReferenceString
Returns
TypeDescription
AvgAggregation.Builder

count()

public static CountAggregation.Builder count()

Returns a CountAggregation builder.

Returns
TypeDescription
CountAggregation.Builder

sum(String propertyReference)

public static SumAggregation.Builder sum(String propertyReference)

Returns a SumAggregation builder.

Parameter
NameDescription
propertyReferenceString
Returns
TypeDescription
SumAggregation.Builder

Constructors

Aggregation(String alias)

public Aggregation(String alias)
Parameter
NameDescription
aliasString

Methods

aggregationBuilder()

protected AggregationQuery.Aggregation.Builder aggregationBuilder()
Returns
TypeDescription
AggregationQuery.Aggregation.Builder

getAlias()

public String getAlias()

Returns the alias for this aggregation.

Returns
TypeDescription
String

toPb()

public abstract AggregationQuery.Aggregation toPb()
Returns
TypeDescription
AggregationQuery.Aggregation