Class Aggregation (2.19.2)

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
Name Description
propertyReference String
Returns
Type Description
AvgAggregation.Builder

count()

public static CountAggregation.Builder count()

Returns a CountAggregation builder.

Returns
Type Description
CountAggregation.Builder

sum(String propertyReference)

public static SumAggregation.Builder sum(String propertyReference)

Returns a SumAggregation builder.

Parameter
Name Description
propertyReference String
Returns
Type Description
SumAggregation.Builder

Constructors

Aggregation(String alias)

public Aggregation(String alias)
Parameter
Name Description
alias String

Methods

aggregationBuilder()

protected AggregationQuery.Aggregation.Builder aggregationBuilder()
Returns
Type Description
AggregationQuery.Aggregation.Builder

getAlias()

public String getAlias()

Returns the alias for this aggregation.

Returns
Type Description
String

toPb()

public abstract AggregationQuery.Aggregation toPb()
Returns
Type Description
AggregationQuery.Aggregation