Class: Google::Apis::DatastoreV1::AggregationResultBatch
- Inherits:
-
Object
- Object
- Google::Apis::DatastoreV1::AggregationResultBatch
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datastore_v1/classes.rb,
lib/google/apis/datastore_v1/representations.rb,
lib/google/apis/datastore_v1/representations.rb
Overview
A batch of aggregation results produced by an aggregation query.
Instance Attribute Summary collapse
-
#aggregation_results ⇒ Array<Google::Apis::DatastoreV1::AggregationResult>
The aggregation results for this batch.
-
#more_results ⇒ String
The state of the query after the current batch.
-
#read_time ⇒ String
Read timestamp this batch was returned from.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AggregationResultBatch
constructor
A new instance of AggregationResultBatch.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AggregationResultBatch
Returns a new instance of AggregationResultBatch.
161 162 163 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 161 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aggregation_results ⇒ Array<Google::Apis::DatastoreV1::AggregationResult>
The aggregation results for this batch.
Corresponds to the JSON property aggregationResults
145 146 147 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 145 def aggregation_results @aggregation_results end |
#more_results ⇒ String
The state of the query after the current batch. Only COUNT(*) aggregations are
supported in the initial launch. Therefore, expected result type is limited to
NO_MORE_RESULTS
.
Corresponds to the JSON property moreResults
152 153 154 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 152 def more_results @more_results end |
#read_time ⇒ String
Read timestamp this batch was returned from. In a single transaction,
subsequent query result batches for the same query can have a greater
timestamp. Each batch's read timestamp is valid for all preceding batches.
Corresponds to the JSON property readTime
159 160 161 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 159 def read_time @read_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
166 167 168 169 170 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 166 def update!(**args) @aggregation_results = args[:aggregation_results] if args.key?(:aggregation_results) @more_results = args[:more_results] if args.key?(:more_results) @read_time = args[:read_time] if args.key?(:read_time) end |