Package com.google.cloud.spanner
Class PartitionOptions
java.lang.Object
com.google.cloud.spanner.PartitionOptions
- All Implemented Interfaces:
Serializable
Defines the configuration for the number and size of partitions returned from
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.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder forPartitionOptions
instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static PartitionOptions
long
Returns the maximum number of partitions to be created.long
Returns the size of the partition in bytes.int
hashCode()
static PartitionOptions.Builder
toString()
-
Method Details
-
getDefaultInstance
-
newBuilder
-
getPartitionSizeBytes
public long getPartitionSizeBytes()Returns the size of the partition in bytes. -
getMaxPartitions
public long getMaxPartitions()Returns the maximum number of partitions to be created. -
toString
-
equals
-
hashCode
public int hashCode()
-