Package com.google.spanner.v1
Class QueryPlan.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<QueryPlan.Builder>
com.google.spanner.v1.QueryPlan.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,QueryPlanOrBuilder,Cloneable
- Enclosing class:
- QueryPlan
public static final class QueryPlan.Builder
extends com.google.protobuf.GeneratedMessage.Builder<QueryPlan.Builder>
implements QueryPlanOrBuilder
Contains an ordered list of nodes appearing in the query plan.Protobuf type
google.spanner.v1.QueryPlan-
Method Summary
Modifier and TypeMethodDescriptionaddAllPlanNodes(Iterable<? extends PlanNode> values) The nodes in the query plan.addPlanNodes(int index, PlanNode value) The nodes in the query plan.addPlanNodes(int index, PlanNode.Builder builderForValue) The nodes in the query plan.addPlanNodes(PlanNode value) The nodes in the query plan.addPlanNodes(PlanNode.Builder builderForValue) The nodes in the query plan.The nodes in the query plan.addPlanNodesBuilder(int index) The nodes in the query plan.build()clear()The nodes in the query plan.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetPlanNodes(int index) The nodes in the query plan.getPlanNodesBuilder(int index) The nodes in the query plan.The nodes in the query plan.intThe nodes in the query plan.The nodes in the query plan.getPlanNodesOrBuilder(int index) The nodes in the query plan.List<? extends PlanNodeOrBuilder>The nodes in the query plan.Optional.Optional.Optional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.removePlanNodes(int index) The nodes in the query plan.setPlanNodes(int index, PlanNode value) The nodes in the query plan.setPlanNodes(int index, PlanNode.Builder builderForValue) The nodes in the query plan.setQueryAdvice(QueryAdvisorResult value) Optional.setQueryAdvice(QueryAdvisorResult.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<QueryPlan.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<QueryPlan.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<QueryPlan.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QueryPlan.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<QueryPlan.Builder>
-
mergeFrom
public QueryPlan.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QueryPlan.Builder>- Throws:
IOException
-
getPlanNodesList
The nodes in the query plan. Plan nodes are returned in pre-order starting with the plan root. Each [PlanNode][google.spanner.v1.PlanNode]'s `id` corresponds to its index in `plan_nodes`.
repeated .google.spanner.v1.PlanNode plan_nodes = 1;- Specified by:
getPlanNodesListin interfaceQueryPlanOrBuilder
-
getPlanNodesCount
public int getPlanNodesCount()The nodes in the query plan. Plan nodes are returned in pre-order starting with the plan root. Each [PlanNode][google.spanner.v1.PlanNode]'s `id` corresponds to its index in `plan_nodes`.
repeated .google.spanner.v1.PlanNode plan_nodes = 1;- Specified by:
getPlanNodesCountin interfaceQueryPlanOrBuilder
-
getPlanNodes
The nodes in the query plan. Plan nodes are returned in pre-order starting with the plan root. Each [PlanNode][google.spanner.v1.PlanNode]'s `id` corresponds to its index in `plan_nodes`.
repeated .google.spanner.v1.PlanNode plan_nodes = 1;- Specified by:
getPlanNodesin interfaceQueryPlanOrBuilder
-
setPlanNodes
The nodes in the query plan. Plan nodes are returned in pre-order starting with the plan root. Each [PlanNode][google.spanner.v1.PlanNode]'s `id` corresponds to its index in `plan_nodes`.
repeated .google.spanner.v1.PlanNode plan_nodes = 1; -
setPlanNodes
The nodes in the query plan. Plan nodes are returned in pre-order starting with the plan root. Each [PlanNode][google.spanner.v1.PlanNode]'s `id` corresponds to its index in `plan_nodes`.
repeated .google.spanner.v1.PlanNode plan_nodes = 1; -
addPlanNodes
The nodes in the query plan. Plan nodes are returned in pre-order starting with the plan root. Each [PlanNode][google.spanner.v1.PlanNode]'s `id` corresponds to its index in `plan_nodes`.
repeated .google.spanner.v1.PlanNode plan_nodes = 1; -
addPlanNodes
The nodes in the query plan. Plan nodes are returned in pre-order starting with the plan root. Each [PlanNode][google.spanner.v1.PlanNode]'s `id` corresponds to its index in `plan_nodes`.
repeated .google.spanner.v1.PlanNode plan_nodes = 1; -
addPlanNodes
The nodes in the query plan. Plan nodes are returned in pre-order starting with the plan root. Each [PlanNode][google.spanner.v1.PlanNode]'s `id` corresponds to its index in `plan_nodes`.
repeated .google.spanner.v1.PlanNode plan_nodes = 1; -
addPlanNodes
The nodes in the query plan. Plan nodes are returned in pre-order starting with the plan root. Each [PlanNode][google.spanner.v1.PlanNode]'s `id` corresponds to its index in `plan_nodes`.
repeated .google.spanner.v1.PlanNode plan_nodes = 1; -
addAllPlanNodes
The nodes in the query plan. Plan nodes are returned in pre-order starting with the plan root. Each [PlanNode][google.spanner.v1.PlanNode]'s `id` corresponds to its index in `plan_nodes`.
repeated .google.spanner.v1.PlanNode plan_nodes = 1; -
clearPlanNodes
The nodes in the query plan. Plan nodes are returned in pre-order starting with the plan root. Each [PlanNode][google.spanner.v1.PlanNode]'s `id` corresponds to its index in `plan_nodes`.
repeated .google.spanner.v1.PlanNode plan_nodes = 1; -
removePlanNodes
The nodes in the query plan. Plan nodes are returned in pre-order starting with the plan root. Each [PlanNode][google.spanner.v1.PlanNode]'s `id` corresponds to its index in `plan_nodes`.
repeated .google.spanner.v1.PlanNode plan_nodes = 1; -
getPlanNodesBuilder
The nodes in the query plan. Plan nodes are returned in pre-order starting with the plan root. Each [PlanNode][google.spanner.v1.PlanNode]'s `id` corresponds to its index in `plan_nodes`.
repeated .google.spanner.v1.PlanNode plan_nodes = 1; -
getPlanNodesOrBuilder
The nodes in the query plan. Plan nodes are returned in pre-order starting with the plan root. Each [PlanNode][google.spanner.v1.PlanNode]'s `id` corresponds to its index in `plan_nodes`.
repeated .google.spanner.v1.PlanNode plan_nodes = 1;- Specified by:
getPlanNodesOrBuilderin interfaceQueryPlanOrBuilder
-
getPlanNodesOrBuilderList
The nodes in the query plan. Plan nodes are returned in pre-order starting with the plan root. Each [PlanNode][google.spanner.v1.PlanNode]'s `id` corresponds to its index in `plan_nodes`.
repeated .google.spanner.v1.PlanNode plan_nodes = 1;- Specified by:
getPlanNodesOrBuilderListin interfaceQueryPlanOrBuilder
-
addPlanNodesBuilder
The nodes in the query plan. Plan nodes are returned in pre-order starting with the plan root. Each [PlanNode][google.spanner.v1.PlanNode]'s `id` corresponds to its index in `plan_nodes`.
repeated .google.spanner.v1.PlanNode plan_nodes = 1; -
addPlanNodesBuilder
The nodes in the query plan. Plan nodes are returned in pre-order starting with the plan root. Each [PlanNode][google.spanner.v1.PlanNode]'s `id` corresponds to its index in `plan_nodes`.
repeated .google.spanner.v1.PlanNode plan_nodes = 1; -
getPlanNodesBuilderList
The nodes in the query plan. Plan nodes are returned in pre-order starting with the plan root. Each [PlanNode][google.spanner.v1.PlanNode]'s `id` corresponds to its index in `plan_nodes`.
repeated .google.spanner.v1.PlanNode plan_nodes = 1; -
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];- Specified by:
hasQueryAdvicein interfaceQueryPlanOrBuilder- Returns:
- Whether the queryAdvice field is set.
-
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];- Specified by:
getQueryAdvicein interfaceQueryPlanOrBuilder- Returns:
- The queryAdvice.
-
setQueryAdvice
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]; -
setQueryAdvice
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]; -
mergeQueryAdvice
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]; -
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]; -
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]; -
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];- Specified by:
getQueryAdviceOrBuilderin interfaceQueryPlanOrBuilder
-