Package com.google.cloud.datastore
Class AggregationResult
- java.lang.Object
-
- com.google.cloud.datastore.AggregationResult
-
public class AggregationResult extends Object
Represents a result of anAggregationQueryquery submission.
-
-
Constructor Summary
Constructors Constructor Description AggregationResult(Map<String,? extends Value<?>> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Longget(String alias)Returns a result value for the given alias.DoublegetDouble(String alias)Returns a result value for the given alias.LonggetLong(String alias)Returns a result value for the given alias.inthashCode()StringtoString()
-
-
-
Method Detail
-
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
public Long getLong(String alias)
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
public Double getDouble(String alias)
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.
-
-