Class: Google::Apis::SpannerV1::QueryPlan
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::QueryPlan
- 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
-
#plan_nodes ⇒ Array<Google::Apis::SpannerV1::PlanNode>
The nodes in the query plan.
-
#query_advice ⇒ Google::Apis::SpannerV1::QueryAdvisorResult
Output of query advisor analysis.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QueryPlan
constructor
A new instance of QueryPlan.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ QueryPlan
Returns a new instance of QueryPlan.
5543 5544 5545 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 5543 def initialize(**args) update!(**args) end |
Instance Attribute Details
#plan_nodes ⇒ Array<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
5536 5537 5538 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 5536 def plan_nodes @plan_nodes end |
#query_advice ⇒ Google::Apis::SpannerV1::QueryAdvisorResult
Output of query advisor analysis.
Corresponds to the JSON property queryAdvice
5541 5542 5543 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 5541 def query_advice @query_advice end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5548 5549 5550 5551 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 5548 def update!(**args) @plan_nodes = args[:plan_nodes] if args.key?(:plan_nodes) @query_advice = args[:query_advice] if args.key?(:query_advice) end |