Interface AggregationQuery.AggregationOrBuilder (2.32.3)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticinterface AggregationQuery.AggregationOrBuilderextendsMessageOrBuilderImplements
MessageOrBuilderMethods
getAlias()
publicabstractStringgetAlias()Optional. Optional name of the property to store the result of the aggregation.
If not provided, Datastore will pick a default name following the format
property_<incremental_id++>. For example:
`
AGGREGATE
COUNT_UP_TO(1) AS count_up_to_1,
COUNT_UP_TO(2),
COUNT_UP_TO(3) AS count_up_to_3,
COUNT(*)
OVER (
...
);
becomes:
`
AGGREGATE
COUNT_UP_TO(1) AS count_up_to_1,
COUNT_UP_TO(2) AS property_1,
COUNT_UP_TO(3) AS count_up_to_3,
COUNT(*) AS property_2
OVER (
...
);
Requires:
- Must be unique across all aggregation aliases.
- Conform to entity property name limitations.
string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The alias. |
getAliasBytes()
publicabstractByteStringgetAliasBytes()Optional. Optional name of the property to store the result of the aggregation.
If not provided, Datastore will pick a default name following the format
property_<incremental_id++>. For example:
`
AGGREGATE
COUNT_UP_TO(1) AS count_up_to_1,
COUNT_UP_TO(2),
COUNT_UP_TO(3) AS count_up_to_3,
COUNT(*)
OVER (
...
);
becomes:
`
AGGREGATE
COUNT_UP_TO(1) AS count_up_to_1,
COUNT_UP_TO(2) AS property_1,
COUNT_UP_TO(3) AS count_up_to_3,
COUNT(*) AS property_2
OVER (
...
);
Requires:
- Must be unique across all aggregation aliases.
- Conform to entity property name limitations.
string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for alias. |
getAvg()
publicabstractAggregationQuery.Aggregation.AvggetAvg()Average aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3;
| Returns | |
|---|---|
| Type | Description |
AggregationQuery.Aggregation.Avg |
The avg. |
getAvgOrBuilder()
publicabstractAggregationQuery.Aggregation.AvgOrBuildergetAvgOrBuilder()Average aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3;
| Returns | |
|---|---|
| Type | Description |
AggregationQuery.Aggregation.AvgOrBuilder |
|
getCount()
publicabstractAggregationQuery.Aggregation.CountgetCount()Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
| Returns | |
|---|---|
| Type | Description |
AggregationQuery.Aggregation.Count |
The count. |
getCountOrBuilder()
publicabstractAggregationQuery.Aggregation.CountOrBuildergetCountOrBuilder()Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
| Returns | |
|---|---|
| Type | Description |
AggregationQuery.Aggregation.CountOrBuilder |
|
getOperatorCase()
publicabstractAggregationQuery.Aggregation.OperatorCasegetOperatorCase()| Returns | |
|---|---|
| Type | Description |
AggregationQuery.Aggregation.OperatorCase |
|
getSum()
publicabstractAggregationQuery.Aggregation.SumgetSum()Sum aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2;
| Returns | |
|---|---|
| Type | Description |
AggregationQuery.Aggregation.Sum |
The sum. |
getSumOrBuilder()
publicabstractAggregationQuery.Aggregation.SumOrBuildergetSumOrBuilder()Sum aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2;
| Returns | |
|---|---|
| Type | Description |
AggregationQuery.Aggregation.SumOrBuilder |
|
hasAvg()
publicabstractbooleanhasAvg()Average aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the avg field is set. |
hasCount()
publicabstractbooleanhasCount()Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the count field is set. |
hasSum()
publicabstractbooleanhasSum()Sum aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sum field is set. |