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 class
PlanNode.Builder
Node information for nodes appearing in a [QueryPlan.plan_nodes][google.spanner.v1.QueryPlan.plan_nodes].static class
PlanNode.ChildLink
Metadata associated with a parent-child relationship appearing in a [PlanNode][google.spanner.v1.PlanNode].static interface
PlanNode.ChildLinkOrBuilder
static class
PlanNode.Kind
The kind of [PlanNode][google.spanner.v1.PlanNode].static class
PlanNode.ShortRepresentation
Condensed representation of a node and its subtree.static interface
PlanNode.ShortRepresentationOrBuilder
-
Nested 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
-
-
Field Summary
Fields Modifier and Type Field Description static int
CHILD_LINKS_FIELD_NUMBER
static int
DISPLAY_NAME_FIELD_NUMBER
static int
EXECUTION_STATS_FIELD_NUMBER
static int
INDEX_FIELD_NUMBER
static int
KIND_FIELD_NUMBER
static int
METADATA_FIELD_NUMBER
static int
SHORT_REPRESENTATION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
PlanNode.ChildLink
getChildLinks(int index)
List of child node `index`es and their relationship to this parent.int
getChildLinksCount()
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.ChildLinkOrBuilder
getChildLinksOrBuilder(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 PlanNode
getDefaultInstance()
PlanNode
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getDisplayName()
The display name for the node.com.google.protobuf.ByteString
getDisplayNameBytes()
The display name for the node.com.google.protobuf.Struct
getExecutionStats()
The execution statistics associated with the node, contained in a group of key-value pairs.com.google.protobuf.StructOrBuilder
getExecutionStatsOrBuilder()
The execution statistics associated with the node, contained in a group of key-value pairs.int
getIndex()
The `PlanNode`'s index in [node list][google.spanner.v1.QueryPlan.plan_nodes].PlanNode.Kind
getKind()
Used to determine the type of node.int
getKindValue()
Used to determine the type of node.com.google.protobuf.Struct
getMetadata()
Attributes relevant to the node contained in a group of key-value pairs.com.google.protobuf.StructOrBuilder
getMetadataOrBuilder()
Attributes relevant to the node contained in a group of key-value pairs.com.google.protobuf.Parser<PlanNode>
getParserForType()
int
getSerializedSize()
PlanNode.ShortRepresentation
getShortRepresentation()
Condensed representation for [SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR] nodes.PlanNode.ShortRepresentationOrBuilder
getShortRepresentationOrBuilder()
Condensed representation for [SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR] nodes.boolean
hasExecutionStats()
The execution statistics associated with the node, contained in a group of key-value pairs.int
hashCode()
boolean
hasMetadata()
Attributes relevant to the node contained in a group of key-value pairs.boolean
hasShortRepresentation()
Condensed representation for [SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR] nodes.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static PlanNode.Builder
newBuilder()
static PlanNode.Builder
newBuilder(PlanNode prototype)
PlanNode.Builder
newBuilderForType()
protected PlanNode.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static PlanNode
parseDelimitedFrom(InputStream input)
static PlanNode
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static PlanNode
parseFrom(byte[] data)
static PlanNode
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static PlanNode
parseFrom(com.google.protobuf.ByteString data)
static PlanNode
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static PlanNode
parseFrom(com.google.protobuf.CodedInputStream input)
static PlanNode
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static PlanNode
parseFrom(InputStream input)
static PlanNode
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static PlanNode
parseFrom(ByteBuffer data)
static PlanNode
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<PlanNode>
parser()
PlanNode.Builder
toBuilder()
void
writeTo(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, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, 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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
getIndex
in 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:
getKindValue
in 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:
getKind
in interfacePlanNodeOrBuilder
- Returns:
- The kind.
-
getDisplayName
public String getDisplayName()
The display name for the node.
string display_name = 3;
- Specified by:
getDisplayName
in interfacePlanNodeOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
The display name for the node.
string display_name = 3;
- Specified by:
getDisplayNameBytes
in 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:
getChildLinksList
in 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:
getChildLinksOrBuilderList
in 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:
getChildLinksCount
in 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:
getChildLinks
in 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:
getChildLinksOrBuilder
in 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:
hasShortRepresentation
in 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:
getShortRepresentation
in 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:
getShortRepresentationOrBuilder
in 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:
hasMetadata
in 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:
getMetadata
in 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:
getMetadataOrBuilder
in 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:
hasExecutionStats
in 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:
getExecutionStats
in 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:
getExecutionStatsOrBuilder
in interfacePlanNodeOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PlanNode.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public PlanNode getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-