Class: Google::Cloud::Datastore::V1::AggregationResult

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/datastore/v1/aggregation_result.rb

Overview

The result of a single bucket from a Datastore aggregation query.

The keys of aggregate_properties are the same for all results in an aggregation query, unlike entity queries which can have different fields present for each result.

Defined Under Namespace

Classes: AggregatePropertiesEntry

Instance Attribute Summary collapse

Instance Attribute Details

#aggregate_properties::Google::Protobuf::Map{::String => ::Google::Cloud::Datastore::V1::Value}

Returns The result of the aggregation functions, ex: COUNT(*) AS total_entities.

The key is the alias assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.

Returns:

  • (::Google::Protobuf::Map{::String => ::Google::Cloud::Datastore::V1::Value})

    The result of the aggregation functions, ex: COUNT(*) AS total_entities.

    The key is the alias assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.



37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'proto_docs/google/datastore/v1/aggregation_result.rb', line 37

class AggregationResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::Datastore::V1::Value]
  class AggregatePropertiesEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end