Package com.google.spanner.v1
Class PlanNode
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.spanner.v1.PlanNode
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,PlanNodeOrBuilder,Serializable
public final class PlanNode
extends com.google.protobuf.GeneratedMessageV3
implements PlanNodeOrBuilder
Node information for nodes appearing in a [QueryPlan.plan_nodes][google.spanner.v1.QueryPlan.plan_nodes].Protobuf type
google.spanner.v1.PlanNode- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classNode information for nodes appearing in a [QueryPlan.plan_nodes][google.spanner.v1.QueryPlan.plan_nodes].static final classMetadata associated with a parent-child relationship appearing in a [PlanNode][google.spanner.v1.PlanNode].static interfacestatic enumThe kind of [PlanNode][google.spanner.v1.PlanNode].static final classCondensed representation of a node and its subtree.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetChildLinks(int index) List of child node `index`es and their relationship to this parent.intList of child node `index`es and their relationship to this parent.List of child node `index`es and their relationship to this parent.getChildLinksOrBuilder(int index) List of child node `index`es and their relationship to this parent.List<? extends PlanNode.ChildLinkOrBuilder>List of child node `index`es and their relationship to this parent.static PlanNodestatic final com.google.protobuf.Descriptors.DescriptorThe display name for the node.com.google.protobuf.ByteStringThe display name for the node.com.google.protobuf.StructThe execution statistics associated with the node, contained in a group of key-value pairs.com.google.protobuf.StructOrBuilderThe execution statistics associated with the node, contained in a group of key-value pairs.intgetIndex()The `PlanNode`'s index in [node list][google.spanner.v1.QueryPlan.plan_nodes].getKind()Used to determine the type of node.intUsed to determine the type of node.com.google.protobuf.StructAttributes relevant to the node contained in a group of key-value pairs.com.google.protobuf.StructOrBuilderAttributes relevant to the node contained in a group of key-value pairs.com.google.protobuf.Parser<PlanNode>intCondensed representation for [SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR] nodes.Condensed representation for [SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR] nodes.booleanThe execution statistics associated with the node, contained in a group of key-value pairs.inthashCode()booleanAttributes relevant to the node contained in a group of key-value pairs.booleanCondensed representation for [SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR] nodes.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic PlanNode.Builderstatic PlanNode.BuildernewBuilder(PlanNode prototype) protected PlanNode.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static PlanNodeparseDelimitedFrom(InputStream input) static PlanNodeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PlanNodeparseFrom(byte[] data) static PlanNodeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PlanNodeparseFrom(com.google.protobuf.ByteString data) static PlanNodeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PlanNodeparseFrom(com.google.protobuf.CodedInputStream input) static PlanNodeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PlanNodeparseFrom(InputStream input) static PlanNodeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PlanNodeparseFrom(ByteBuffer data) static PlanNodeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<PlanNode>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
INDEX_FIELD_NUMBER
public static final int INDEX_FIELD_NUMBER- See Also:
-
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
CHILD_LINKS_FIELD_NUMBER
public static final int CHILD_LINKS_FIELD_NUMBER- See Also:
-
SHORT_REPRESENTATION_FIELD_NUMBER
public static final int SHORT_REPRESENTATION_FIELD_NUMBER- See Also:
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER- See Also:
-
EXECUTION_STATS_FIELD_NUMBER
public static final int EXECUTION_STATS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getIndex
public int getIndex()The `PlanNode`'s index in [node list][google.spanner.v1.QueryPlan.plan_nodes].
int32 index = 1;- Specified by:
getIndexin interfacePlanNodeOrBuilder- Returns:
- The index.
-
getKindValue
public int getKindValue()Used to determine the type of node. May be needed for visualizing different kinds of nodes differently. For example, If the node is a [SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR] node, it will have a condensed representation which can be used to directly embed a description of the node in its parent.
.google.spanner.v1.PlanNode.Kind kind = 2;- Specified by:
getKindValuein interfacePlanNodeOrBuilder- Returns:
- The enum numeric value on the wire for kind.
-
getKind
Used to determine the type of node. May be needed for visualizing different kinds of nodes differently. For example, If the node is a [SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR] node, it will have a condensed representation which can be used to directly embed a description of the node in its parent.
.google.spanner.v1.PlanNode.Kind kind = 2;- Specified by:
getKindin interfacePlanNodeOrBuilder- Returns:
- The kind.
-
getDisplayName
The display name for the node.
string display_name = 3;- Specified by:
getDisplayNamein interfacePlanNodeOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()The display name for the node.
string display_name = 3;- Specified by:
getDisplayNameBytesin interfacePlanNodeOrBuilder- Returns:
- The bytes for displayName.
-
getChildLinksList
List of child node `index`es and their relationship to this parent.
repeated .google.spanner.v1.PlanNode.ChildLink child_links = 4;- Specified by:
getChildLinksListin interfacePlanNodeOrBuilder
-
getChildLinksOrBuilderList
List of child node `index`es and their relationship to this parent.
repeated .google.spanner.v1.PlanNode.ChildLink child_links = 4;- Specified by:
getChildLinksOrBuilderListin interfacePlanNodeOrBuilder
-
getChildLinksCount
public int getChildLinksCount()List of child node `index`es and their relationship to this parent.
repeated .google.spanner.v1.PlanNode.ChildLink child_links = 4;- Specified by:
getChildLinksCountin interfacePlanNodeOrBuilder
-
getChildLinks
List of child node `index`es and their relationship to this parent.
repeated .google.spanner.v1.PlanNode.ChildLink child_links = 4;- Specified by:
getChildLinksin interfacePlanNodeOrBuilder
-
getChildLinksOrBuilder
List of child node `index`es and their relationship to this parent.
repeated .google.spanner.v1.PlanNode.ChildLink child_links = 4;- Specified by:
getChildLinksOrBuilderin interfacePlanNodeOrBuilder
-
hasShortRepresentation
public boolean hasShortRepresentation()Condensed representation for [SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR] nodes.
.google.spanner.v1.PlanNode.ShortRepresentation short_representation = 5;- Specified by:
hasShortRepresentationin interfacePlanNodeOrBuilder- Returns:
- Whether the shortRepresentation field is set.
-
getShortRepresentation
Condensed representation for [SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR] nodes.
.google.spanner.v1.PlanNode.ShortRepresentation short_representation = 5;- Specified by:
getShortRepresentationin interfacePlanNodeOrBuilder- Returns:
- The shortRepresentation.
-
getShortRepresentationOrBuilder
Condensed representation for [SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR] nodes.
.google.spanner.v1.PlanNode.ShortRepresentation short_representation = 5;- Specified by:
getShortRepresentationOrBuilderin interfacePlanNodeOrBuilder
-
hasMetadata
public boolean hasMetadata()Attributes relevant to the node contained in a group of key-value pairs. For example, a Parameter Reference node could have the following information in its metadata: { "parameter_reference": "param1", "parameter_type": "array" }.google.protobuf.Struct metadata = 6;- Specified by:
hasMetadatain interfacePlanNodeOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
public com.google.protobuf.Struct getMetadata()Attributes relevant to the node contained in a group of key-value pairs. For example, a Parameter Reference node could have the following information in its metadata: { "parameter_reference": "param1", "parameter_type": "array" }.google.protobuf.Struct metadata = 6;- Specified by:
getMetadatain interfacePlanNodeOrBuilder- Returns:
- The metadata.
-
getMetadataOrBuilder
public com.google.protobuf.StructOrBuilder getMetadataOrBuilder()Attributes relevant to the node contained in a group of key-value pairs. For example, a Parameter Reference node could have the following information in its metadata: { "parameter_reference": "param1", "parameter_type": "array" }.google.protobuf.Struct metadata = 6;- Specified by:
getMetadataOrBuilderin interfacePlanNodeOrBuilder
-
hasExecutionStats
public boolean hasExecutionStats()The execution statistics associated with the node, contained in a group of key-value pairs. Only present if the plan was returned as a result of a profile query. For example, number of executions, number of rows/time per execution etc.
.google.protobuf.Struct execution_stats = 7;- Specified by:
hasExecutionStatsin interfacePlanNodeOrBuilder- Returns:
- Whether the executionStats field is set.
-
getExecutionStats
public com.google.protobuf.Struct getExecutionStats()The execution statistics associated with the node, contained in a group of key-value pairs. Only present if the plan was returned as a result of a profile query. For example, number of executions, number of rows/time per execution etc.
.google.protobuf.Struct execution_stats = 7;- Specified by:
getExecutionStatsin interfacePlanNodeOrBuilder- Returns:
- The executionStats.
-
getExecutionStatsOrBuilder
public com.google.protobuf.StructOrBuilder getExecutionStatsOrBuilder()The execution statistics associated with the node, contained in a group of key-value pairs. Only present if the plan was returned as a result of a profile query. For example, number of executions, number of rows/time per execution etc.
.google.protobuf.Struct execution_stats = 7;- Specified by:
getExecutionStatsOrBuilderin interfacePlanNodeOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static PlanNode parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PlanNode parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PlanNode parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PlanNode parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PlanNode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PlanNode parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static PlanNode parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static PlanNode parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static PlanNode parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PlanNode.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-