Class QueryPlan.Builder (6.71.0)

public static final class QueryPlan.Builder extends GeneratedMessageV3.Builder<QueryPlan.Builder> implements QueryPlanOrBuilder

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

Protobuf type google.spanner.v1.QueryPlan

Implements

QueryPlanOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllPlanNodes(Iterable<? extends PlanNode> values)

public QueryPlan.Builder addAllPlanNodes(Iterable<? extends PlanNode> values)

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.

repeated .google.spanner.v1.PlanNode plan_nodes = 1;

Parameter
Name Description
values Iterable<? extends com.google.spanner.v1.PlanNode>
Returns
Type Description
QueryPlan.Builder

addPlanNodes(PlanNode value)

public QueryPlan.Builder addPlanNodes(PlanNode value)

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.

repeated .google.spanner.v1.PlanNode plan_nodes = 1;

Parameter
Name Description
value PlanNode
Returns
Type Description
QueryPlan.Builder

addPlanNodes(PlanNode.Builder builderForValue)

public QueryPlan.Builder addPlanNodes(PlanNode.Builder builderForValue)

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.

repeated .google.spanner.v1.PlanNode plan_nodes = 1;

Parameter
Name Description
builderForValue PlanNode.Builder
Returns
Type Description
QueryPlan.Builder

addPlanNodes(int index, PlanNode value)

public QueryPlan.Builder addPlanNodes(int index, PlanNode value)

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.

repeated .google.spanner.v1.PlanNode plan_nodes = 1;

Parameters
Name Description
index int
value PlanNode
Returns
Type Description
QueryPlan.Builder

addPlanNodes(int index, PlanNode.Builder builderForValue)

public QueryPlan.Builder addPlanNodes(int index, PlanNode.Builder builderForValue)

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.

repeated .google.spanner.v1.PlanNode plan_nodes = 1;

Parameters
Name Description
index int
builderForValue PlanNode.Builder
Returns
Type Description
QueryPlan.Builder

addPlanNodesBuilder()

public PlanNode.Builder addPlanNodesBuilder()

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.

repeated .google.spanner.v1.PlanNode plan_nodes = 1;

Returns
Type Description
PlanNode.Builder

addPlanNodesBuilder(int index)

public PlanNode.Builder addPlanNodesBuilder(int index)

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.

repeated .google.spanner.v1.PlanNode plan_nodes = 1;

Parameter
Name Description
index int
Returns
Type Description
PlanNode.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QueryPlan.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QueryPlan.Builder
Overrides

build()

public QueryPlan build()
Returns
Type Description
QueryPlan

buildPartial()

public QueryPlan buildPartial()
Returns
Type Description
QueryPlan

clear()

public QueryPlan.Builder clear()
Returns
Type Description
QueryPlan.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public QueryPlan.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
QueryPlan.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public QueryPlan.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
QueryPlan.Builder
Overrides

clearPlanNodes()

public QueryPlan.Builder clearPlanNodes()

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.

repeated .google.spanner.v1.PlanNode plan_nodes = 1;

Returns
Type Description
QueryPlan.Builder

clone()

public QueryPlan.Builder clone()
Returns
Type Description
QueryPlan.Builder
Overrides

getDefaultInstanceForType()

public QueryPlan getDefaultInstanceForType()
Returns
Type Description
QueryPlan

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPlanNodes(int index)

public PlanNode getPlanNodes(int index)

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.

repeated .google.spanner.v1.PlanNode plan_nodes = 1;

Parameter
Name Description
index int
Returns
Type Description
PlanNode

getPlanNodesBuilder(int index)

public PlanNode.Builder getPlanNodesBuilder(int index)

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.

repeated .google.spanner.v1.PlanNode plan_nodes = 1;

Parameter
Name Description
index int
Returns
Type Description
PlanNode.Builder

getPlanNodesBuilderList()

public List<PlanNode.Builder> getPlanNodesBuilderList()

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.

repeated .google.spanner.v1.PlanNode plan_nodes = 1;

Returns
Type Description
List<Builder>

getPlanNodesCount()

public int getPlanNodesCount()

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.

repeated .google.spanner.v1.PlanNode plan_nodes = 1;

Returns
Type Description
int

getPlanNodesList()

public List<PlanNode> getPlanNodesList()

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.

repeated .google.spanner.v1.PlanNode plan_nodes = 1;

Returns
Type Description
List<PlanNode>

getPlanNodesOrBuilder(int index)

public PlanNodeOrBuilder getPlanNodesOrBuilder(int index)

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.

repeated .google.spanner.v1.PlanNode plan_nodes = 1;

Parameter
Name Description
index int
Returns
Type Description
PlanNodeOrBuilder

getPlanNodesOrBuilderList()

public List<? extends PlanNodeOrBuilder> getPlanNodesOrBuilderList()

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.

repeated .google.spanner.v1.PlanNode plan_nodes = 1;

Returns
Type Description
List<? extends com.google.spanner.v1.PlanNodeOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public QueryPlan.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryPlan.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public QueryPlan.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
QueryPlan.Builder
Overrides

mergeFrom(QueryPlan other)

public QueryPlan.Builder mergeFrom(QueryPlan other)
Parameter
Name Description
other QueryPlan
Returns
Type Description
QueryPlan.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QueryPlan.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QueryPlan.Builder
Overrides

removePlanNodes(int index)

public QueryPlan.Builder removePlanNodes(int index)

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.

repeated .google.spanner.v1.PlanNode plan_nodes = 1;

Parameter
Name Description
index int
Returns
Type Description
QueryPlan.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public QueryPlan.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QueryPlan.Builder
Overrides

setPlanNodes(int index, PlanNode value)

public QueryPlan.Builder setPlanNodes(int index, PlanNode value)

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.

repeated .google.spanner.v1.PlanNode plan_nodes = 1;

Parameters
Name Description
index int
value PlanNode
Returns
Type Description
QueryPlan.Builder

setPlanNodes(int index, PlanNode.Builder builderForValue)

public QueryPlan.Builder setPlanNodes(int index, PlanNode.Builder builderForValue)

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.

repeated .google.spanner.v1.PlanNode plan_nodes = 1;

Parameters
Name Description
index int
builderForValue PlanNode.Builder
Returns
Type Description
QueryPlan.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public QueryPlan.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
QueryPlan.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final QueryPlan.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QueryPlan.Builder
Overrides