Class PartitionOptions (6.49.0)

public class PartitionOptions implements Serializable

Defines the configuration for the number and size of partitions returned from BatchReadOnlyTransaction#partitionRead, BatchReadOnlyTransaction#partitionReadUsingIndex and BatchReadOnlyTransaction#partitionQuery

Note: these options may not be honored based on the other parameters in the request.

Inheritance

Object > PartitionOptions

Implements

Serializable

Static Methods

getDefaultInstance()

public static PartitionOptions getDefaultInstance()
Returns
TypeDescription
PartitionOptions

newBuilder()

public static PartitionOptions.Builder newBuilder()
Returns
TypeDescription
PartitionOptions.Builder

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getMaxPartitions()

public long getMaxPartitions()

Returns the maximum number of partitions to be created.

Returns
TypeDescription
long

getPartitionSizeBytes()

public long getPartitionSizeBytes()

Returns the size of the partition in bytes.

Returns
TypeDescription
long

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides