Package com.google.cloud.spanner
Class PartitionOptions
- java.lang.Object
-
- com.google.cloud.spanner.PartitionOptions
-
- All Implemented Interfaces:
Serializable
public class PartitionOptions extends Object implements Serializable
Defines the configuration for the number and size of partitions returned fromBatchReadOnlyTransaction.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...)andBatchReadOnlyTransaction.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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPartitionOptions.BuilderBuilder forPartitionOptionsinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static PartitionOptionsgetDefaultInstance()longgetMaxPartitions()Returns the maximum number of partitions to be created.longgetPartitionSizeBytes()Returns the size of the partition in bytes.inthashCode()static PartitionOptions.BuildernewBuilder()StringtoString()
-
-
-
Method Detail
-
getDefaultInstance
public static PartitionOptions getDefaultInstance()
-
newBuilder
public static PartitionOptions.Builder 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.
-
-