Class GenerateDbPartitionsForReadAction (6.72.0)

public final class GenerateDbPartitionsForReadAction extends GeneratedMessageV3 implements GenerateDbPartitionsForReadActionOrBuilder

Generate database partitions for the given read. Successful outcomes will contain database partitions in the db_partition field.

Protobuf type google.spanner.executor.v1.GenerateDbPartitionsForReadAction

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > GenerateDbPartitionsForReadAction

Static Fields

DESIRED_BYTES_PER_PARTITION_FIELD_NUMBER

public static final int DESIRED_BYTES_PER_PARTITION_FIELD_NUMBER
Field Value
Type Description
int

MAX_PARTITION_COUNT_FIELD_NUMBER

public static final int MAX_PARTITION_COUNT_FIELD_NUMBER
Field Value
Type Description
int

READ_FIELD_NUMBER

public static final int READ_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 GenerateDbPartitionsForReadAction getDefaultInstance()
Returns
Type Description
GenerateDbPartitionsForReadAction

getDescriptor()

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

newBuilder()

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

newBuilder(GenerateDbPartitionsForReadAction prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public GenerateDbPartitionsForReadAction getDefaultInstanceForType()
Returns
Type Description
GenerateDbPartitionsForReadAction

getDesiredBytesPerPartition()

public long getDesiredBytesPerPartition()

Desired size of data in each partition. Spanner doesn't guarantee to respect this value.

optional int64 desired_bytes_per_partition = 3;

Returns
Type Description
long

The desiredBytesPerPartition.

getMaxPartitionCount()

public long getMaxPartitionCount()

If set, the desired max number of partitions. Spanner doesn't guarantee to respect this value.

optional int64 max_partition_count = 4;

Returns
Type Description
long

The maxPartitionCount.

getParserForType()

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

getRead()

public ReadAction getRead()

Read to generate partitions for.

.google.spanner.executor.v1.ReadAction read = 1;

Returns
Type Description
ReadAction

The read.

getReadOrBuilder()

public ReadActionOrBuilder getReadOrBuilder()

Read to generate partitions for.

.google.spanner.executor.v1.ReadAction read = 1;

Returns
Type Description
ReadActionOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTable(int index)

public TableMetadata getTable(int index)

Metadata related to the tables involved in the read.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Parameter
Name Description
index int
Returns
Type Description
TableMetadata

getTableCount()

public int getTableCount()

Metadata related to the tables involved in the read.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Returns
Type Description
int

getTableList()

public List<TableMetadata> getTableList()

Metadata related to the tables involved in the read.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Returns
Type Description
List<TableMetadata>

getTableOrBuilder(int index)

public TableMetadataOrBuilder getTableOrBuilder(int index)

Metadata related to the tables involved in the read.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Parameter
Name Description
index int
Returns
Type Description
TableMetadataOrBuilder

getTableOrBuilderList()

public List<? extends TableMetadataOrBuilder> getTableOrBuilderList()

Metadata related to the tables involved in the read.

repeated .google.spanner.executor.v1.TableMetadata table = 2;

Returns
Type Description
List<? extends com.google.spanner.executor.v1.TableMetadataOrBuilder>

hasDesiredBytesPerPartition()

public boolean hasDesiredBytesPerPartition()

Desired size of data in each partition. Spanner doesn't guarantee to respect this value.

optional int64 desired_bytes_per_partition = 3;

Returns
Type Description
boolean

Whether the desiredBytesPerPartition field is set.

hasMaxPartitionCount()

public boolean hasMaxPartitionCount()

If set, the desired max number of partitions. Spanner doesn't guarantee to respect this value.

optional int64 max_partition_count = 4;

Returns
Type Description
boolean

Whether the maxPartitionCount field is set.

hasRead()

public boolean hasRead()

Read to generate partitions for.

.google.spanner.executor.v1.ReadAction read = 1;

Returns
Type Description
boolean

Whether the read 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 GenerateDbPartitionsForReadAction.Builder newBuilderForType()
Returns
Type Description
GenerateDbPartitionsForReadAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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