public final class PartitionOptions extends GeneratedMessageV3 implements PartitionOptionsOrBuilder
Options for a PartitionQueryRequest and PartitionReadRequest.
Protobuf type google.spanner.v1.PartitionOptions
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > PartitionOptionsImplements
PartitionOptionsOrBuilderFields
MAX_PARTITIONS_FIELD_NUMBER
public static final int MAX_PARTITIONS_FIELD_NUMBER
Type | Description |
int |
PARTITION_SIZE_BYTES_FIELD_NUMBER
public static final int PARTITION_SIZE_BYTES_FIELD_NUMBER
Type | Description |
int |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstance()
public static PartitionOptions getDefaultInstance()
Type | Description |
PartitionOptions |
getDefaultInstanceForType()
public PartitionOptions getDefaultInstanceForType()
Type | Description |
PartitionOptions |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getMaxPartitions()
public long getMaxPartitions()
Note: This hint is currently ignored by PartitionQuery and PartitionRead requests. The desired maximum number of partitions to return. For example, this may be set to the number of workers available. The default for this option is currently 10,000. The maximum value is currently 200,000. This is only a hint. The actual number of partitions returned may be smaller or larger than this maximum count request.
int64 max_partitions = 2;
Type | Description |
long | The maxPartitions. |
getParserForType()
public Parser<PartitionOptions> getParserForType()
Type | Description |
Parser<PartitionOptions> |
getPartitionSizeBytes()
public long getPartitionSizeBytes()
Note: This hint is currently ignored by PartitionQuery and PartitionRead requests. The desired data size for each partition generated. The default for this option is currently 1 GiB. This is only a hint. The actual size of each partition may be smaller or larger than this size request.
int64 partition_size_bytes = 1;
Type | Description |
long | The partitionSizeBytes. |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilder()
public static PartitionOptions.Builder newBuilder()
Type | Description |
PartitionOptions.Builder |
newBuilder(PartitionOptions prototype)
public static PartitionOptions.Builder newBuilder(PartitionOptions prototype)
Name | Description |
prototype | PartitionOptions |
Type | Description |
PartitionOptions.Builder |
newBuilderForType()
public PartitionOptions.Builder newBuilderForType()
Type | Description |
PartitionOptions.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PartitionOptions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
PartitionOptions.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
parseDelimitedFrom(InputStream input)
public static PartitionOptions parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
PartitionOptions |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PartitionOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PartitionOptions |
Type | Description |
IOException |
parseFrom(byte[] data)
public static PartitionOptions parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
PartitionOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PartitionOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PartitionOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static PartitionOptions parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
PartitionOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PartitionOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PartitionOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static PartitionOptions parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
PartitionOptions |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PartitionOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PartitionOptions |
Type | Description |
IOException |
parseFrom(InputStream input)
public static PartitionOptions parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
PartitionOptions |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PartitionOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PartitionOptions |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static PartitionOptions parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
PartitionOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PartitionOptions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PartitionOptions |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<PartitionOptions> parser()
Type | Description |
Parser<PartitionOptions> |
toBuilder()
public PartitionOptions.Builder toBuilder()
Type | Description |
PartitionOptions.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |