Class: Google::Apis::SpannerV1::ResultSetStats

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ResultSetStats

Returns a new instance of ResultSetStats.



2648
2649
2650
# File 'generated/google/apis/spanner_v1/classes.rb', line 2648

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

Instance Attribute Details

#query_planGoogle::Apis::SpannerV1::QueryPlan

Contains an ordered list of nodes appearing in the query plan. Corresponds to the JSON property queryPlan



2623
2624
2625
# File 'generated/google/apis/spanner_v1/classes.rb', line 2623

def query_plan
  @query_plan
end

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

Returns:

  • (Hash<String,Object>)


2635
2636
2637
# File 'generated/google/apis/spanner_v1/classes.rb', line 2635

def query_stats
  @query_stats
end

#row_count_exactFixnum

Standard DML returns an exact count of rows that were modified. Corresponds to the JSON property rowCountExact

Returns:

  • (Fixnum)


2640
2641
2642
# File 'generated/google/apis/spanner_v1/classes.rb', line 2640

def row_count_exact
  @row_count_exact
end

#row_count_lower_boundFixnum

Partitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified. Corresponds to the JSON property rowCountLowerBound

Returns:

  • (Fixnum)


2646
2647
2648
# File 'generated/google/apis/spanner_v1/classes.rb', line 2646

def row_count_lower_bound
  @row_count_lower_bound
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2653
2654
2655
2656
2657
2658
# File 'generated/google/apis/spanner_v1/classes.rb', line 2653

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