Cloud Spanner V1 Client - Class QueryPlan (1.54.2)

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.

Generated from protobuf field repeated .google.spanner.v1.PlanNode plan_nodes = 1;

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.

Generated from protobuf field repeated .google.spanner.v1.PlanNode plan_nodes = 1;

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