Interface AggregationResultOrBuilder (2.27.1)

publicinterface AggregationResultOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

containsAggregateProperties(String key)

publicabstractbooleancontainsAggregateProperties(Stringkey)

The result of the aggregation functions, ex: COUNT(*) AS total_entities.

The key is the alias assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.

map<string, .google.datastore.v1.Value> aggregate_properties = 2;

Parameter
Name Description
key String
Returns
Type Description
boolean

getAggregateProperties() (deprecated)

publicabstractMap<String,Value>getAggregateProperties()
Returns
Type Description
Map<String,Value>

getAggregatePropertiesCount()

publicabstractintgetAggregatePropertiesCount()

The result of the aggregation functions, ex: COUNT(*) AS total_entities.

The key is the alias assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.

map<string, .google.datastore.v1.Value> aggregate_properties = 2;

Returns
Type Description
int

getAggregatePropertiesMap()

publicabstractMap<String,Value>getAggregatePropertiesMap()

The result of the aggregation functions, ex: COUNT(*) AS total_entities.

The key is the alias assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.

map<string, .google.datastore.v1.Value> aggregate_properties = 2;

Returns
Type Description
Map<String,Value>

getAggregatePropertiesOrDefault(String key, Value defaultValue)

publicabstractValuegetAggregatePropertiesOrDefault(Stringkey,ValuedefaultValue)

The result of the aggregation functions, ex: COUNT(*) AS total_entities.

The key is the alias assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.

map<string, .google.datastore.v1.Value> aggregate_properties = 2;

Parameters
Name Description
key String
defaultValue Value
Returns
Type Description
Value

getAggregatePropertiesOrThrow(String key)

publicabstractValuegetAggregatePropertiesOrThrow(Stringkey)

The result of the aggregation functions, ex: COUNT(*) AS total_entities.

The key is the alias assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.

map<string, .google.datastore.v1.Value> aggregate_properties = 2;

Parameter
Name Description
key String
Returns
Type Description
Value

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.