Class AggregationResult (2.24.3)

publicclass AggregationResult

Represents a result of an AggregationQuery query submission.

Inheritance

Object > AggregationResult

Constructors

AggregationResult(Map<String,? extends Value<?>> properties)

publicAggregationResult(Map<String,?extendsValue<?>>properties)
Parameter
Name Description
properties Map<String,? extends com.google.cloud.datastore.Value<?>>

Methods

equals(Object o)

publicbooleanequals(Objecto)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

get(String alias)

publicLongget(Stringalias)

Returns a result value for the given alias. #getLong(String) is preferred over this method, Use #getLong(String) wherever possible.

Parameter
Name Description
alias String

A custom alias provided in the query or an autogenerated alias in the form of 'property_d'

Returns
Type Description
Long

An aggregation result value for the given alias.

getDouble(String alias)

publicDoublegetDouble(Stringalias)

Returns a result value for the given alias.

Parameter
Name Description
alias String

A custom alias provided in the query or an autogenerated alias in the form of 'property_d'

Returns
Type Description
Double

An aggregation result value for the given alias.

getLong(String alias)

publicLonggetLong(Stringalias)

Returns a result value for the given alias.

Parameter
Name Description
alias String

A custom alias provided in the query or an autogenerated alias in the form of 'property_d'

Returns
Type Description
Long

An aggregation result value for the given alias.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

toString()

publicStringtoString()
Returns
Type Description
String
Overrides

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.