public static final class BatchPartition.Builder extends GeneratedMessage.Builder<BatchPartition.Builder> implements BatchPartitionOrBuilderIdentifies 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BatchPartition.BuilderImplements
BatchPartitionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public BatchPartition build()| Returns | |
|---|---|
| Type | Description |
BatchPartition |
|
buildPartial()
public BatchPartition buildPartial()| Returns | |
|---|---|
| Type | Description |
BatchPartition |
|
clear()
public BatchPartition.Builder clear()| Returns | |
|---|---|
| Type | Description |
BatchPartition.Builder |
|
clearIndex()
public BatchPartition.Builder clearIndex()Index name if the partition was generated for an index read.
optional string index = 4;
| Returns | |
|---|---|
| Type | Description |
BatchPartition.Builder |
This builder for chaining. |
clearPartition()
public BatchPartition.Builder clearPartition()Serialized Partition instance.
bytes partition = 1;
| Returns | |
|---|---|
| Type | Description |
BatchPartition.Builder |
This builder for chaining. |
clearPartitionToken()
public BatchPartition.Builder clearPartitionToken()The partition token decrypted from partition.
bytes partition_token = 2;
| Returns | |
|---|---|
| Type | Description |
BatchPartition.Builder |
This builder for chaining. |
clearTable()
public BatchPartition.Builder clearTable()Table name is set iff the partition was generated for a read (as opposed to a query).
optional string table = 3;
| Returns | |
|---|---|
| Type | Description |
BatchPartition.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public BatchPartition getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
BatchPartition |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BatchPartition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BatchPartition.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BatchPartition.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BatchPartition.Builder |
|
mergeFrom(BatchPartition other)
public BatchPartition.Builder mergeFrom(BatchPartition other)| Parameter | |
|---|---|
| Name | Description |
other |
BatchPartition |
| Returns | |
|---|---|
| Type | Description |
BatchPartition.Builder |
|
setIndex(String value)
public BatchPartition.Builder setIndex(String value)Index name if the partition was generated for an index read.
optional string index = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe index to set. |
| Returns | |
|---|---|
| Type | Description |
BatchPartition.Builder |
This builder for chaining. |
setIndexBytes(ByteString value)
public BatchPartition.Builder setIndexBytes(ByteString value)Index name if the partition was generated for an index read.
optional string index = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for index to set. |
| Returns | |
|---|---|
| Type | Description |
BatchPartition.Builder |
This builder for chaining. |
setPartition(ByteString value)
public BatchPartition.Builder setPartition(ByteString value)Serialized Partition instance.
bytes partition = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe partition to set. |
| Returns | |
|---|---|
| Type | Description |
BatchPartition.Builder |
This builder for chaining. |
setPartitionToken(ByteString value)
public BatchPartition.Builder setPartitionToken(ByteString value)The partition token decrypted from partition.
bytes partition_token = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe partitionToken to set. |
| Returns | |
|---|---|
| Type | Description |
BatchPartition.Builder |
This builder for chaining. |
setTable(String value)
public BatchPartition.Builder setTable(String value)Table name is set iff the partition was generated for a read (as opposed to a query).
optional string table = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe table to set. |
| Returns | |
|---|---|
| Type | Description |
BatchPartition.Builder |
This builder for chaining. |
setTableBytes(ByteString value)
public BatchPartition.Builder setTableBytes(ByteString value)Table name is set iff the partition was generated for a read (as opposed to a query).
optional string table = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for table to set. |
| Returns | |
|---|---|
| Type | Description |
BatchPartition.Builder |
This builder for chaining. |