Class: Google::Apis::FirestoreV1beta1::StructuredAggregationQuery
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1beta1::StructuredAggregationQuery
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firestore_v1beta1/classes.rb,
lib/google/apis/firestore_v1beta1/representations.rb,
lib/google/apis/firestore_v1beta1/representations.rb
Overview
Firestore query for running an aggregation over a StructuredQuery.
Instance Attribute Summary collapse
-
#aggregations ⇒ Array<Google::Apis::FirestoreV1beta1::Aggregation>
Optional.
-
#structured_query ⇒ Google::Apis::FirestoreV1beta1::StructuredQuery
A Firestore query.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StructuredAggregationQuery
constructor
A new instance of StructuredAggregationQuery.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StructuredAggregationQuery
Returns a new instance of StructuredAggregationQuery.
2457 2458 2459 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 2457 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aggregations ⇒ Array<Google::Apis::FirestoreV1beta1::Aggregation>
Optional. Series of aggregations to apply over the results of the
structured_query. Requires: * A minimum of one and maximum of five
aggregations per query.
Corresponds to the JSON property aggregations
2449 2450 2451 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 2449 def aggregations @aggregations end |
#structured_query ⇒ Google::Apis::FirestoreV1beta1::StructuredQuery
A Firestore query. The query stages are executed in the following order: 1.
from 2. where 3. select 4. order_by + start_at + end_at 5. offset 6. limit
Corresponds to the JSON property structuredQuery
2455 2456 2457 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 2455 def structured_query @structured_query end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2462 2463 2464 2465 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 2462 def update!(**args) @aggregations = args[:aggregations] if args.key?(:aggregations) @structured_query = args[:structured_query] if args.key?(:structured_query) end |