Class PlanNode (6.58.0)

public final class PlanNode extends GeneratedMessageV3 implements PlanNodeOrBuilder

Node information for nodes appearing in a QueryPlan.plan_nodes.

Protobuf type google.spanner.v1.PlanNode

Implements

PlanNodeOrBuilder

Static Fields

public static final int CHILD_LINKS_FIELD_NUMBER
Field Value
TypeDescription
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

EXECUTION_STATS_FIELD_NUMBER

public static final int EXECUTION_STATS_FIELD_NUMBER
Field Value
TypeDescription
int

INDEX_FIELD_NUMBER

public static final int INDEX_FIELD_NUMBER
Field Value
TypeDescription
int

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
TypeDescription
int

METADATA_FIELD_NUMBER

public static final int METADATA_FIELD_NUMBER
Field Value
TypeDescription
int

SHORT_REPRESENTATION_FIELD_NUMBER

public static final int SHORT_REPRESENTATION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PlanNode getDefaultInstance()
Returns
TypeDescription
PlanNode

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static PlanNode.Builder newBuilder()
Returns
TypeDescription
PlanNode.Builder

newBuilder(PlanNode prototype)

public static PlanNode.Builder newBuilder(PlanNode prototype)
Parameter
NameDescription
prototypePlanNode
Returns
TypeDescription
PlanNode.Builder

parseDelimitedFrom(InputStream input)

public static PlanNode parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PlanNode
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PlanNode parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PlanNode
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PlanNode parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PlanNode
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PlanNode parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PlanNode
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PlanNode parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PlanNode
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PlanNode parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PlanNode
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PlanNode parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PlanNode
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PlanNode parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PlanNode
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PlanNode parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PlanNode
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PlanNode parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PlanNode
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PlanNode parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PlanNode
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PlanNode parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PlanNode
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<PlanNode> parser()
Returns
TypeDescription
Parser<PlanNode>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides
public PlanNode.ChildLink getChildLinks(int index)

List of child node indexes and their relationship to this parent.

repeated .google.spanner.v1.PlanNode.ChildLink child_links = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
PlanNode.ChildLink

getChildLinksCount()

public int getChildLinksCount()

List of child node indexes and their relationship to this parent.

repeated .google.spanner.v1.PlanNode.ChildLink child_links = 4;

Returns
TypeDescription
int
public List<PlanNode.ChildLink> getChildLinksList()

List of child node indexes and their relationship to this parent.

repeated .google.spanner.v1.PlanNode.ChildLink child_links = 4;

Returns
TypeDescription
List<ChildLink>

getChildLinksOrBuilder(int index)

public PlanNode.ChildLinkOrBuilder getChildLinksOrBuilder(int index)

List of child node indexes and their relationship to this parent.

repeated .google.spanner.v1.PlanNode.ChildLink child_links = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
PlanNode.ChildLinkOrBuilder

getChildLinksOrBuilderList()

public List<? extends PlanNode.ChildLinkOrBuilder> getChildLinksOrBuilderList()

List of child node indexes and their relationship to this parent.

repeated .google.spanner.v1.PlanNode.ChildLink child_links = 4;

Returns
TypeDescription
List<? extends com.google.spanner.v1.PlanNode.ChildLinkOrBuilder>

getDefaultInstanceForType()

public PlanNode getDefaultInstanceForType()
Returns
TypeDescription
PlanNode

getDisplayName()

public String getDisplayName()

The display name for the node.

string display_name = 3;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display name for the node.

string display_name = 3;

Returns
TypeDescription
ByteString

The bytes for displayName.

getExecutionStats()

public 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;

Returns
TypeDescription
Struct

The executionStats.

getExecutionStatsOrBuilder()

public 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;

Returns
TypeDescription
StructOrBuilder

getIndex()

public int getIndex()

The PlanNode's index in node list.

int32 index = 1;

Returns
TypeDescription
int

The index.

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 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;

Returns
TypeDescription
PlanNode.Kind

The kind.

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 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;

Returns
TypeDescription
int

The enum numeric value on the wire for kind.

getMetadata()

public 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;

Returns
TypeDescription
Struct

The metadata.

getMetadataOrBuilder()

public 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;

Returns
TypeDescription
StructOrBuilder

getParserForType()

public Parser<PlanNode> getParserForType()
Returns
TypeDescription
Parser<PlanNode>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getShortRepresentation()

public PlanNode.ShortRepresentation getShortRepresentation()

Condensed representation for SCALAR nodes.

.google.spanner.v1.PlanNode.ShortRepresentation short_representation = 5;

Returns
TypeDescription
PlanNode.ShortRepresentation

The shortRepresentation.

getShortRepresentationOrBuilder()

public PlanNode.ShortRepresentationOrBuilder getShortRepresentationOrBuilder()

Condensed representation for SCALAR nodes.

.google.spanner.v1.PlanNode.ShortRepresentation short_representation = 5;

Returns
TypeDescription
PlanNode.ShortRepresentationOrBuilder

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;

Returns
TypeDescription
boolean

Whether the executionStats field is set.

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;

Returns
TypeDescription
boolean

Whether the metadata field is set.

hasShortRepresentation()

public boolean hasShortRepresentation()

Condensed representation for SCALAR nodes.

.google.spanner.v1.PlanNode.ShortRepresentation short_representation = 5;

Returns
TypeDescription
boolean

Whether the shortRepresentation field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PlanNode.Builder newBuilderForType()
Returns
TypeDescription
PlanNode.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PlanNode.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PlanNode.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PlanNode.Builder toBuilder()
Returns
TypeDescription
PlanNode.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException