public class PartitionOptions extends Object implements Serializable
BatchReadOnlyTransaction.partitionRead(com.google.cloud.spanner.PartitionOptions, java.lang.String, com.google.cloud.spanner.KeySet, java.lang.Iterable<java.lang.String>, com.google.cloud.spanner.Options.ReadOption...)
, BatchReadOnlyTransaction.partitionReadUsingIndex(com.google.cloud.spanner.PartitionOptions, java.lang.String, java.lang.String, com.google.cloud.spanner.KeySet, java.lang.Iterable<java.lang.String>, com.google.cloud.spanner.Options.ReadOption...)
and BatchReadOnlyTransaction.partitionQuery(com.google.cloud.spanner.PartitionOptions, com.google.cloud.spanner.Statement, com.google.cloud.spanner.Options.QueryOption...)
Note: these options may not be honored based on the other parameters in the request.
Modifier and Type | Class and Description |
---|---|
static class |
PartitionOptions.Builder
Builder for
PartitionOptions instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static PartitionOptions |
getDefaultInstance() |
long |
getMaxPartitions()
Returns the maximum number of partitions to be created.
|
long |
getPartitionSizeBytes()
Returns the size of the partition in bytes.
|
int |
hashCode() |
static PartitionOptions.Builder |
newBuilder() |
String |
toString() |
public static PartitionOptions getDefaultInstance()
public static PartitionOptions.Builder newBuilder()
public long getPartitionSizeBytes()
public long getMaxPartitions()
Copyright © 2022 Google LLC. All rights reserved.