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 typegoogle.spanner.v1.PlanNode- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlanNode.BuilderNode information for nodes appearing in a [QueryPlan.plan_nodes][google.spanner.v1.QueryPlan.plan_nodes].static classPlanNode.ChildLinkMetadata associated with a parent-child relationship appearing in a [PlanNode][google.spanner.v1.PlanNode].static interfacePlanNode.ChildLinkOrBuilderstatic classPlanNode.KindThe kind of [PlanNode][google.spanner.v1.PlanNode].static classPlanNode.ShortRepresentationCondensed representation of a node and its subtree.static interfacePlanNode.ShortRepresentationOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCHILD_LINKS_FIELD_NUMBERstatic intDISPLAY_NAME_FIELD_NUMBERstatic intEXECUTION_STATS_FIELD_NUMBERstatic intINDEX_FIELD_NUMBERstatic intKIND_FIELD_NUMBERstatic intMETADATA_FIELD_NUMBERstatic intSHORT_REPRESENTATION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)PlanNode.ChildLinkgetChildLinks(int index)List of child node `index`es and their relationship to this parent.intgetChildLinksCount()List of child node `index`es and their relationship to this parent.List<PlanNode.ChildLink>getChildLinksList()List of child node `index`es and their relationship to this parent.PlanNode.ChildLinkOrBuildergetChildLinksOrBuilder(int index)List of child node `index`es and their relationship to this parent.List<? extends PlanNode.ChildLinkOrBuilder>getChildLinksOrBuilderList()List of child node `index`es and their relationship to this parent.static PlanNodegetDefaultInstance()PlanNodegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDisplayName()The display name for the node.com.google.protobuf.ByteStringgetDisplayNameBytes()The display name for the node.com.google.protobuf.StructgetExecutionStats()The execution statistics associated with the node, contained in a group of key-value pairs.com.google.protobuf.StructOrBuildergetExecutionStatsOrBuilder()The 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].PlanNode.KindgetKind()Used to determine the type of node.intgetKindValue()Used to determine the type of node.com.google.protobuf.StructgetMetadata()Attributes relevant to the node contained in a group of key-value pairs.com.google.protobuf.StructOrBuildergetMetadataOrBuilder()Attributes relevant to the node contained in a group of key-value pairs.com.google.protobuf.Parser<PlanNode>getParserForType()intgetSerializedSize()PlanNode.ShortRepresentationgetShortRepresentation()Condensed representation for [SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR] nodes.PlanNode.ShortRepresentationOrBuildergetShortRepresentationOrBuilder()Condensed representation for [SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR] nodes.com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasExecutionStats()The execution statistics associated with the node, contained in a group of key-value pairs.inthashCode()booleanhasMetadata()Attributes relevant to the node contained in a group of key-value pairs.booleanhasShortRepresentation()Condensed representation for [SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR] nodes.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static PlanNode.BuildernewBuilder()static PlanNode.BuildernewBuilder(PlanNode prototype)PlanNode.BuildernewBuilderForType()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()PlanNode.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
INDEX_FIELD_NUMBER
public static final int INDEX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CHILD_LINKS_FIELD_NUMBER
public static final int CHILD_LINKS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SHORT_REPRESENTATION_FIELD_NUMBER
public static final int SHORT_REPRESENTATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXECUTION_STATS_FIELD_NUMBER
public static final int EXECUTION_STATS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin 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
public PlanNode.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
public String 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
public List<PlanNode.ChildLink> 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
public List<? extends PlanNode.ChildLinkOrBuilder> 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
public PlanNode.ChildLink getChildLinks(int index)
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
public PlanNode.ChildLinkOrBuilder getChildLinksOrBuilder(int index)
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
public PlanNode.ShortRepresentation 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
public PlanNode.ShortRepresentationOrBuilder 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
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- 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
public boolean equals(Object obj)
- 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
public static PlanNode parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static PlanNode parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static PlanNode parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static PlanNode parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static PlanNode parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static PlanNode parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public PlanNode.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static PlanNode.Builder newBuilder()
-
newBuilder
public static PlanNode.Builder newBuilder(PlanNode prototype)
-
toBuilder
public PlanNode.Builder 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
public static PlanNode getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<PlanNode> parser()
-
getParserForType
public com.google.protobuf.Parser<PlanNode> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public PlanNode getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-