Class: Google::Apis::SpannerV1::ResultSetStats
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::SpannerV1::ResultSetStats
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/spanner_v1/classes.rb,
lib/google/apis/spanner_v1/representations.rb,
lib/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.
 - 
  
    
      #row_count_exact  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Standard DML returns an exact count of rows that were modified.
 - 
  
    
      #row_count_lower_bound  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Partitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified.
 
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.
      3955 3956 3957  | 
    
      # File 'lib/google/apis/spanner_v1/classes.rb', line 3955 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
      3935 3936 3937  | 
    
      # File 'lib/google/apis/spanner_v1/classes.rb', line 3935 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
      3942 3943 3944  | 
    
      # File 'lib/google/apis/spanner_v1/classes.rb', line 3942 def query_stats @query_stats end  | 
  
#row_count_exact ⇒ Fixnum
Standard DML returns an exact count of rows that were modified.
Corresponds to the JSON property rowCountExact
      3947 3948 3949  | 
    
      # File 'lib/google/apis/spanner_v1/classes.rb', line 3947 def row_count_exact @row_count_exact end  | 
  
#row_count_lower_bound ⇒ Fixnum
Partitioned DML does not offer exactly-once semantics, so it returns a lower
bound of the rows modified.
Corresponds to the JSON property rowCountLowerBound
      3953 3954 3955  | 
    
      # File 'lib/google/apis/spanner_v1/classes.rb', line 3953 def row_count_lower_bound @row_count_lower_bound end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      3960 3961 3962 3963 3964 3965  | 
    
      # File 'lib/google/apis/spanner_v1/classes.rb', line 3960 def update!(**args) @query_plan = args[:query_plan] if args.key?(:query_plan) @query_stats = args[:query_stats] if args.key?(:query_stats) @row_count_exact = args[:row_count_exact] if args.key?(:row_count_exact) @row_count_lower_bound = args[:row_count_lower_bound] if args.key?(:row_count_lower_bound) end  |