public static final class QueryPlan.Builder extends GeneratedMessage.Builder<QueryPlan.Builder> implements QueryPlanOrBuilderContains an ordered list of nodes appearing in the query plan.
Protobuf type google.spanner.v1.QueryPlan
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > QueryPlan.BuilderImplements
QueryPlanOrBuilderStatic 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 |
|
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 |
|
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 |
|
clearQueryAdvice()
public QueryPlan.Builder clearQueryAdvice()Optional. The advise/recommendations for a query. Currently this field will be serving index recommendations for a query.
.google.spanner.v1.QueryAdvisorResult query_advice = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
QueryPlan.Builder |
|
getDefaultInstanceForType()
public QueryPlan getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
QueryPlan |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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> |
|
getQueryAdvice()
public QueryAdvisorResult getQueryAdvice()Optional. The advise/recommendations for a query. Currently this field will be serving index recommendations for a query.
.google.spanner.v1.QueryAdvisorResult query_advice = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
QueryAdvisorResult |
The queryAdvice. |
getQueryAdviceBuilder()
public QueryAdvisorResult.Builder getQueryAdviceBuilder()Optional. The advise/recommendations for a query. Currently this field will be serving index recommendations for a query.
.google.spanner.v1.QueryAdvisorResult query_advice = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
QueryAdvisorResult.Builder |
|
getQueryAdviceOrBuilder()
public QueryAdvisorResultOrBuilder getQueryAdviceOrBuilder()Optional. The advise/recommendations for a query. Currently this field will be serving index recommendations for a query.
.google.spanner.v1.QueryAdvisorResult query_advice = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
QueryAdvisorResultOrBuilder |
|
hasQueryAdvice()
public boolean hasQueryAdvice()Optional. The advise/recommendations for a query. Currently this field will be serving index recommendations for a query.
.google.spanner.v1.QueryAdvisorResult query_advice = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the queryAdvice field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public QueryPlan.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
QueryPlan.Builder |
|
mergeFrom(QueryPlan other)
public QueryPlan.Builder mergeFrom(QueryPlan other)| Parameter | |
|---|---|
| Name | Description |
other |
QueryPlan |
| Returns | |
|---|---|
| Type | Description |
QueryPlan.Builder |
|
mergeQueryAdvice(QueryAdvisorResult value)
public QueryPlan.Builder mergeQueryAdvice(QueryAdvisorResult value)Optional. The advise/recommendations for a query. Currently this field will be serving index recommendations for a query.
.google.spanner.v1.QueryAdvisorResult query_advice = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
QueryAdvisorResult |
| Returns | |
|---|---|
| Type | Description |
QueryPlan.Builder |
|
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 |
|
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 |
|
setQueryAdvice(QueryAdvisorResult value)
public QueryPlan.Builder setQueryAdvice(QueryAdvisorResult value)Optional. The advise/recommendations for a query. Currently this field will be serving index recommendations for a query.
.google.spanner.v1.QueryAdvisorResult query_advice = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
QueryAdvisorResult |
| Returns | |
|---|---|
| Type | Description |
QueryPlan.Builder |
|
setQueryAdvice(QueryAdvisorResult.Builder builderForValue)
public QueryPlan.Builder setQueryAdvice(QueryAdvisorResult.Builder builderForValue)Optional. The advise/recommendations for a query. Currently this field will be serving index recommendations for a query.
.google.spanner.v1.QueryAdvisorResult query_advice = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
QueryAdvisorResult.Builder |
| Returns | |
|---|---|
| Type | Description |
QueryPlan.Builder |
|