Class: Google::Apis::SpannerV1::ResultSetStats
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::SpannerV1::ResultSetStats
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/spanner_v1/classes.rb,
 generated/google/apis/spanner_v1/representations.rb,
 generated/google/apis/spanner_v1/representations.rb
Overview
Additional statistics about a ResultSet or PartialResultSet.
Instance Attribute Summary collapse
- 
  
    
      #query_plan  ⇒ Google::Apis::SpannerV1::QueryPlan 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Contains an ordered list of nodes appearing in the query plan. 
- 
  
    
      #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. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ResultSetStats
Returns a new instance of ResultSetStats
| 2175 2176 2177 | # File 'generated/google/apis/spanner_v1/classes.rb', line 2175 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#query_plan ⇒ Google::Apis::SpannerV1::QueryPlan
Contains an ordered list of nodes appearing in the query plan.
Corresponds to the JSON property queryPlan
| 2161 2162 2163 | # File 'generated/google/apis/spanner_v1/classes.rb', line 2161 def query_plan @query_plan end | 
#query_stats ⇒ Hash<String,Object>
Aggregated statistics from the execution of the query. Only present when
the query is profiled. For example, a query could return the statistics as
follows:
"rows_returned": "3",
"elapsed_time": "1.22 secs",
"cpu_time": "1.19 secs"
Corresponds to the JSON property queryStats
| 2173 2174 2175 | # File 'generated/google/apis/spanner_v1/classes.rb', line 2173 def query_stats @query_stats end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2180 2181 2182 2183 | # File 'generated/google/apis/spanner_v1/classes.rb', line 2180 def update!(**args) @query_plan = args[:query_plan] if args.key?(:query_plan) @query_stats = args[:query_stats] if args.key?(:query_stats) end |