Class AggregationQuery.Builder (2.20.0)

public static class AggregationQuery.Builder

Inheritance

java.lang.Object > AggregationQuery.Builder

Constructors

Builder()

public Builder()

Methods

addAggregation(Aggregation aggregation)

public AggregationQuery.Builder addAggregation(Aggregation aggregation)
Parameter
Name Description
aggregation Aggregation
Returns
Type Description
AggregationQuery.Builder

addAggregation(AggregationBuilder<?> aggregationBuilder)

public AggregationQuery.Builder addAggregation(AggregationBuilder<?> aggregationBuilder)
Parameter
Name Description
aggregationBuilder AggregationBuilder<?>
Returns
Type Description
AggregationQuery.Builder

addAggregations(Aggregation[] aggregations)

public AggregationQuery.Builder addAggregations(Aggregation[] aggregations)
Parameter
Name Description
aggregations Aggregation[]
Returns
Type Description
AggregationQuery.Builder

addAggregations(AggregationBuilder<?>[] aggregationBuilders)

public AggregationQuery.Builder addAggregations(AggregationBuilder<?>[] aggregationBuilders)
Parameter
Name Description
aggregationBuilders AggregationBuilder<?>[]
Returns
Type Description
AggregationQuery.Builder

build()

public AggregationQuery build()
Returns
Type Description
AggregationQuery

over(GqlQuery<?> nestedQuery)

public AggregationQuery.Builder over(GqlQuery<?> nestedQuery)
Parameter
Name Description
nestedQuery GqlQuery<?>
Returns
Type Description
AggregationQuery.Builder

over(StructuredQuery<?> nestedQuery)

public AggregationQuery.Builder over(StructuredQuery<?> nestedQuery)
Parameter
Name Description
nestedQuery StructuredQuery<?>
Returns
Type Description
AggregationQuery.Builder

setNamespace(String namespace)

public AggregationQuery.Builder setNamespace(String namespace)
Parameter
Name Description
namespace String
Returns
Type Description
AggregationQuery.Builder