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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static BatchPartition.Builder newBuilder()
newBuilder(BatchPartition prototype)
public static BatchPartition.Builder newBuilder(BatchPartition prototype)
public static BatchPartition parseDelimitedFrom(InputStream input)
public static BatchPartition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static BatchPartition parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BatchPartition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static BatchPartition parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BatchPartition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BatchPartition parseFrom(CodedInputStream input)
public static BatchPartition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static BatchPartition parseFrom(InputStream input)
public static BatchPartition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static BatchPartition parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static BatchPartition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<BatchPartition> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public BatchPartition getDefaultInstanceForType()
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()
Overrides
getPartition()
public ByteString getPartition()
Serialized Partition instance.
bytes partition = 1;
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()
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()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public BatchPartition.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected BatchPartition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public BatchPartition.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides