Class: Google::Apis::FirestoreV1::ResultSetStats

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firestore_v1/classes.rb,
lib/google/apis/firestore_v1/representations.rb,
lib/google/apis/firestore_v1/representations.rb

Overview

Planning and execution statistics for the query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResultSetStats

Returns a new instance of ResultSetStats.



2991
2992
2993
# File 'lib/google/apis/firestore_v1/classes.rb', line 2991

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#query_planGoogle::Apis::FirestoreV1::QueryPlan

Plan for the query. Corresponds to the JSON property queryPlan



2980
2981
2982
# File 'lib/google/apis/firestore_v1/classes.rb', line 2980

def query_plan
  @query_plan
end

#query_statsHash<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

Returns:

  • (Hash<String,Object>)


2989
2990
2991
# File 'lib/google/apis/firestore_v1/classes.rb', line 2989

def query_stats
  @query_stats
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2996
2997
2998
2999
# File 'lib/google/apis/firestore_v1/classes.rb', line 2996

def update!(**args)
  @query_plan = args[:query_plan] if args.key?(:query_plan)
  @query_stats = args[:query_stats] if args.key?(:query_stats)
end