Class: Google::Apis::FirestoreV1beta1::ResultSetStats
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1beta1::ResultSetStats
- 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
Planning and execution statistics for the query.
Instance Attribute Summary collapse
-
#query_plan ⇒ Google::Apis::FirestoreV1beta1::QueryPlan
Plan for the query.
-
#query_stats ⇒ Hash<String,Object>
Aggregated statistics from the execution of the query.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResultSetStats
constructor
A new instance of ResultSetStats.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResultSetStats
Returns a new instance of ResultSetStats.
2066 2067 2068 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 2066 def initialize(**args) update!(**args) end |
Instance Attribute Details
#query_plan ⇒ Google::Apis::FirestoreV1beta1::QueryPlan
Plan for the query.
Corresponds to the JSON property queryPlan
2055 2056 2057 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 2055 def query_plan @query_plan end |
#query_stats ⇒ Hash<String,Object>
Aggregated statistics from the execution of the query. This will only be
present when the request specifies PROFILE mode. For example, a query will
return the statistics including: "results_returned": "20", "
documents_scanned": "20", "indexes_entries_scanned": "10050", "
total_execution_time": "100.7 msecs"
Corresponds to the JSON property queryStats
2064 2065 2066 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 2064 def query_stats @query_stats end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2071 2072 2073 2074 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 2071 def update!(**args) @query_plan = args[:query_plan] if args.key?(:query_plan) @query_stats = args[:query_stats] if args.key?(:query_stats) end |