Class AggregationQuery.Builder (2.17.6)

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
NameDescription
aggregationAggregation
Returns
TypeDescription
AggregationQuery.Builder

addAggregation(AggregationBuilder<?> aggregationBuilder)

public AggregationQuery.Builder addAggregation(AggregationBuilder<?> aggregationBuilder)
Parameter
NameDescription
aggregationBuilderAggregationBuilder<?>
Returns
TypeDescription
AggregationQuery.Builder

addAggregations(Aggregation[] aggregations)

public AggregationQuery.Builder addAggregations(Aggregation[] aggregations)
Parameter
NameDescription
aggregationsAggregation[]
Returns
TypeDescription
AggregationQuery.Builder

addAggregations(AggregationBuilder<?>[] aggregationBuilders)

public AggregationQuery.Builder addAggregations(AggregationBuilder<?>[] aggregationBuilders)
Parameter
NameDescription
aggregationBuildersAggregationBuilder<?>[]
Returns
TypeDescription
AggregationQuery.Builder

build()

public AggregationQuery build()
Returns
TypeDescription
AggregationQuery

over(GqlQuery<?> nestedQuery)

public AggregationQuery.Builder over(GqlQuery<?> nestedQuery)
Parameter
NameDescription
nestedQueryGqlQuery<?>
Returns
TypeDescription
AggregationQuery.Builder

over(StructuredQuery<?> nestedQuery)

public AggregationQuery.Builder over(StructuredQuery<?> nestedQuery)
Parameter
NameDescription
nestedQueryStructuredQuery<?>
Returns
TypeDescription
AggregationQuery.Builder

setNamespace(String namespace)

public AggregationQuery.Builder setNamespace(String namespace)
Parameter
NameDescription
namespaceString
Returns
TypeDescription
AggregationQuery.Builder