Class Partition (6.57.0)

public final class Partition extends GeneratedMessageV3 implements PartitionOrBuilder

Information returned for each partition returned in a PartitionResponse.

Protobuf type google.spanner.v1.Partition

Implements

PartitionOrBuilder

Static Fields

PARTITION_TOKEN_FIELD_NUMBER

public static final int PARTITION_TOKEN_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Partition getDefaultInstance()
Returns
TypeDescription
Partition

getDescriptor()

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

newBuilder()

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

newBuilder(Partition prototype)

public static Partition.Builder newBuilder(Partition prototype)
Parameter
NameDescription
prototypePartition
Returns
TypeDescription
Partition.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Partition getDefaultInstanceForType()
Returns
TypeDescription
Partition

getParserForType()

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

getPartitionToken()

public ByteString getPartitionToken()

This token can be passed to Read, StreamingRead, ExecuteSql, or ExecuteStreamingSql requests to restrict the results to those identified by this partition token.

bytes partition_token = 1;

Returns
TypeDescription
ByteString

The partitionToken.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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 Partition.Builder newBuilderForType()
Returns
TypeDescription
Partition.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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