Class: Google::Apis::DatastoreV1::ResultSetStats
- Inherits:
-
Object
- Object
- Google::Apis::DatastoreV1::ResultSetStats
- 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
Planning and execution statistics for the query.
Instance Attribute Summary collapse
-
#query_plan ⇒ Google::Apis::DatastoreV1::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.
2325 2326 2327 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 2325 def initialize(**args) update!(**args) end |
Instance Attribute Details
#query_plan ⇒ Google::Apis::DatastoreV1::QueryPlan
Plan for the query.
Corresponds to the JSON property queryPlan
2314 2315 2316 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 2314 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
2323 2324 2325 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 2323 def query_stats @query_stats end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2330 2331 2332 2333 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 2330 def update!(**args) @query_plan = args[:query_plan] if args.key?(:query_plan) @query_stats = args[:query_stats] if args.key?(:query_stats) end |