Class: Google::Apis::SpannerV1::QueryPlan

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

Contains an ordered list of nodes appearing in the query plan.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueryPlan

Returns a new instance of QueryPlan.



3101
3102
3103
# File 'lib/google/apis/spanner_v1/classes.rb', line 3101

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

Instance Attribute Details

#plan_nodesArray<Google::Apis::SpannerV1::PlanNode>

The nodes in the query plan. Plan nodes are returned in pre-order starting with the plan root. Each PlanNode's id corresponds to its index in plan_nodes. Corresponds to the JSON property planNodes



3099
3100
3101
# File 'lib/google/apis/spanner_v1/classes.rb', line 3099

def plan_nodes
  @plan_nodes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3106
3107
3108
# File 'lib/google/apis/spanner_v1/classes.rb', line 3106

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