Reference documentation and code samples for the Cloud Spanner V1 API class Google::Cloud::Spanner::V1::QueryPlan.
Contains an ordered list of nodes appearing in the query plan.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#plan_nodes
def plan_nodes() -> ::Array<::Google::Cloud::Spanner::V1::PlanNode>
Returns
-
(::Array<::Google::Cloud::Spanner::V1::PlanNode>) — The nodes in the query plan. Plan nodes are returned in pre-order starting
with the plan root. Each PlanNode's
idcorresponds to its index inplan_nodes.
#plan_nodes=
def plan_nodes=(value) -> ::Array<::Google::Cloud::Spanner::V1::PlanNode>
Parameter
-
value (::Array<::Google::Cloud::Spanner::V1::PlanNode>) — The nodes in the query plan. Plan nodes are returned in pre-order starting
with the plan root. Each PlanNode's
idcorresponds to its index inplan_nodes.
Returns
-
(::Array<::Google::Cloud::Spanner::V1::PlanNode>) — The nodes in the query plan. Plan nodes are returned in pre-order starting
with the plan root. Each PlanNode's
idcorresponds to its index inplan_nodes.
#query_advice
def query_advice() -> ::Google::Cloud::Spanner::V1::QueryAdvisorResult
Returns
- (::Google::Cloud::Spanner::V1::QueryAdvisorResult) — Optional. The advise/recommendations for a query. Currently this field will be serving index recommendations for a query.
#query_advice=
def query_advice=(value) -> ::Google::Cloud::Spanner::V1::QueryAdvisorResult
Parameter
- value (::Google::Cloud::Spanner::V1::QueryAdvisorResult) — Optional. The advise/recommendations for a query. Currently this field will be serving index recommendations for a query.
Returns
- (::Google::Cloud::Spanner::V1::QueryAdvisorResult) — Optional. The advise/recommendations for a query. Currently this field will be serving index recommendations for a query.