Cloud Spanner V1 Client - Class QueryPlan (1.58.4)

Reference documentation and code samples for the Cloud Spanner V1 Client class QueryPlan.

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

Generated from protobuf message google.spanner.v1.QueryPlan

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ plan_nodes 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 id corresponds to its index in plan_nodes.

getPlanNodes

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.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPlanNodes

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.

Parameter
NameDescription
var array<Google\Cloud\Spanner\V1\PlanNode>
Returns
TypeDescription
$this