public class AggregationResultRepresents a result of an AggregationQuery query submission.
Constructors
AggregationResult(Map<String,? extends Value<?>> properties)
public AggregationResult(Map<String,? extends Value<?>> properties)| Parameter | |
|---|---|
| Name | Description |
properties |
Map<String,? extends com.google.cloud.datastore.Value<?>> |
Methods
equals(Object o)
public boolean equals(Object o)| Parameter | |
|---|---|
| Name | Description |
o |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
get(String alias)
public Long get(String alias)Returns a result value for the given alias. #getLong(String) is preferred over this method, Use #getLong(String) wherever possible.
| Parameter | |
|---|---|
| Name | Description |
alias |
StringA 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)
public Double getDouble(String alias)Returns a result value for the given alias.
| Parameter | |
|---|---|
| Name | Description |
alias |
StringA 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)
public Long getLong(String alias)Returns a result value for the given alias.
| Parameter | |
|---|---|
| Name | Description |
alias |
StringA 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. |
getNumber(String alias)
public Number getNumber(String alias)Returns a result value for the given alias.
| Parameter | |
|---|---|
| Name | Description |
alias |
StringA custom alias provided in the query or an autogenerated alias in the form of 'property_d' |
| Returns | |
|---|---|
| Type | Description |
Number |
An aggregation result value as a Number for the given alias. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
toString()
public String toString()| Returns | |
|---|---|
| Type | Description |
String |
|