public static interface AggregationQuery.AggregationOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getAlias()
public abstract String getAlias()
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:
<code><code>
AGGREGATE
COUNT_UP_TO(1) AS count_up_to_1,
COUNT_UP_TO(2),
COUNT_UP_TO(3) AS count_up_to_3,
COUNT_UP_TO(4)
OVER (
...
);
</code></code><code>
becomes:
</code><code><code>
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_UP_TO(4) AS property_2
OVER (
...
);
</code></code>
Requires:
- Must be unique across all aggregation aliases.
- Conform to entity property name limitations.
string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
String | The alias. |
getAliasBytes()
public abstract ByteString getAliasBytes()
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:
<code><code>
AGGREGATE
COUNT_UP_TO(1) AS count_up_to_1,
COUNT_UP_TO(2),
COUNT_UP_TO(3) AS count_up_to_3,
COUNT_UP_TO(4)
OVER (
...
);
</code></code><code>
becomes:
</code><code><code>
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_UP_TO(4) AS property_2
OVER (
...
);
</code></code>
Requires:
- Must be unique across all aggregation aliases.
- Conform to entity property name limitations.
string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ByteString | The bytes for alias. |
getCount()
public abstract AggregationQuery.Aggregation.Count getCount()
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
Type | Description |
AggregationQuery.Aggregation.Count | The count. |
getCountOrBuilder()
public abstract AggregationQuery.Aggregation.CountOrBuilder getCountOrBuilder()
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
Type | Description |
AggregationQuery.Aggregation.CountOrBuilder |
getOperatorCase()
public abstract AggregationQuery.Aggregation.OperatorCase getOperatorCase()
Type | Description |
AggregationQuery.Aggregation.OperatorCase |
hasCount()
public abstract boolean hasCount()
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
Type | Description |
boolean | Whether the count field is set. |