Package com.google.cloud.datastore
Class AggregationResult
- java.lang.Object
-
- com.google.cloud.datastore.AggregationResult
-
public class AggregationResult extends Object
Represents a result of anAggregationQuery
query 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 boolean
equals(Object o)
Long
get(String alias)
Returns a result value for the given alias.Double
getDouble(String alias)
Returns a result value for the given alias.Long
getLong(String alias)
Returns a result value for the given alias.int
hashCode()
String
toString()
-
-
-
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.
-
-