Class PartitionOptions

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

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getDefaultInstance()

public static PartitionOptions getDefaultInstance()
Returns
Type Description
PartitionOptions

getMaxPartitions()

public long getMaxPartitions()

Returns the maximum number of partitions to be created.

Returns
Type Description
long

getPartitionSizeBytes()

public long getPartitionSizeBytes()

Returns the size of the partition in bytes.

Returns
Type Description
long

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

newBuilder()

public static PartitionOptions.Builder newBuilder()
Returns
Type Description
PartitionOptions.Builder

toString()

public String toString()
Returns
Type Description
String
Overrides