Class BatchPartition (6.80.1)

public final class BatchPartition extends GeneratedMessageV3 implements BatchPartitionOrBuilder

Identifies a database partition generated for a particular read or query. To read rows from the partition, use ExecutePartitionAction.

Protobuf type google.spanner.executor.v1.BatchPartition

Static Fields

INDEX_FIELD_NUMBER

public static final int INDEX_FIELD_NUMBER
Field Value
Type Description
int

PARTITION_FIELD_NUMBER

public static final int PARTITION_FIELD_NUMBER
Field Value
Type Description
int

PARTITION_TOKEN_FIELD_NUMBER

public static final int PARTITION_TOKEN_FIELD_NUMBER
Field Value
Type Description
int

TABLE_FIELD_NUMBER

public static final int TABLE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BatchPartition getDefaultInstance()
Returns
Type Description
BatchPartition

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static BatchPartition.Builder newBuilder()
Returns
Type Description
BatchPartition.Builder

newBuilder(BatchPartition prototype)

public static BatchPartition.Builder newBuilder(BatchPartition prototype)
Parameter
Name Description
prototype BatchPartition
Returns
Type Description
BatchPartition.Builder

parseDelimitedFrom(InputStream input)

public static BatchPartition parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BatchPartition
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchPartition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchPartition
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BatchPartition parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BatchPartition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BatchPartition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchPartition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BatchPartition parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BatchPartition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BatchPartition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchPartition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BatchPartition parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BatchPartition
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchPartition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchPartition
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BatchPartition parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BatchPartition
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchPartition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchPartition
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BatchPartition parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BatchPartition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BatchPartition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchPartition
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BatchPartition> parser()
Returns
Type Description
Parser<BatchPartition>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public BatchPartition getDefaultInstanceForType()
Returns
Type Description
BatchPartition

getIndex()

public String getIndex()

Index name if the partition was generated for an index read.

optional string index = 4;

Returns
Type Description
String

The index.

getIndexBytes()

public ByteString getIndexBytes()

Index name if the partition was generated for an index read.

optional string index = 4;

Returns
Type Description
ByteString

The bytes for index.

getParserForType()

public Parser<BatchPartition> getParserForType()
Returns
Type Description
Parser<BatchPartition>
Overrides

getPartition()

public ByteString getPartition()

Serialized Partition instance.

bytes partition = 1;

Returns
Type Description
ByteString

The partition.

getPartitionToken()

public ByteString getPartitionToken()

The partition token decrypted from partition.

bytes partition_token = 2;

Returns
Type Description
ByteString

The partitionToken.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTable()

public String getTable()

Table name is set iff the partition was generated for a read (as opposed to a query).

optional string table = 3;

Returns
Type Description
String

The table.

getTableBytes()

public ByteString getTableBytes()

Table name is set iff the partition was generated for a read (as opposed to a query).

optional string table = 3;

Returns
Type Description
ByteString

The bytes for table.

hasIndex()

public boolean hasIndex()

Index name if the partition was generated for an index read.

optional string index = 4;

Returns
Type Description
boolean

Whether the index field is set.

hasTable()

public boolean hasTable()

Table name is set iff the partition was generated for a read (as opposed to a query).

optional string table = 3;

Returns
Type Description
boolean

Whether the table field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BatchPartition.Builder newBuilderForType()
Returns
Type Description
BatchPartition.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BatchPartition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BatchPartition.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public BatchPartition.Builder toBuilder()
Returns
Type Description
BatchPartition.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException