Package com.google.cloud.datastore
Class AggregationResult
java.lang.Object
com.google.cloud.datastore.AggregationResult
Represents a result of an
AggregationQuery query submission.-
Constructor Details
-
AggregationResult
-
-
Method Details
-
get
@ObsoleteApi("Please use getLong(String) instead, see Github issue #1175 for details.") public Long get(String alias) Returns a result value for the given alias.getLong(String)is preferred over this method, UsegetLong(String)wherever possible.- Parameters:
alias- A custom alias provided in the query or an autogenerated alias in the form of 'property_\d'- Returns:
- An aggregation result value for the given alias.
-
getLong
Returns a result value for the given alias.- Parameters:
alias- A custom alias provided in the query or an autogenerated alias in the form of 'property_\d'- Returns:
- An aggregation result value for the given alias.
-
getDouble
Returns a result value for the given alias.- Parameters:
alias- A custom alias provided in the query or an autogenerated alias in the form of 'property_\d'- Returns:
- An aggregation result value for the given alias.
-
getNumber
Returns a result value for the given alias.- Parameters:
alias- A custom alias provided in the query or an autogenerated alias in the form of 'property_\d'- Returns:
- An aggregation result value as a
Numberfor the given alias.
-
equals
-
hashCode
public int hashCode() -
toString
-