Class AggregationResult

java.lang.Object
com.google.cloud.datastore.AggregationResult

public class AggregationResult extends Object
Represents a result of an AggregationQuery query submission.
  • Constructor Details

    • AggregationResult

      public AggregationResult(Map<String,? extends Value<?>> properties)
  • 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, Use getLong(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.
    • getNumber

      public Number getNumber(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 as a Number for the given alias.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object