Class PartitionOptions.Builder (6.66.0)

public static class PartitionOptions.Builder

Builder for PartitionOptions instance.

Inheritance

java.lang.Object > PartitionOptions.Builder

Methods

build()

public PartitionOptions build()
Returns
Type Description
PartitionOptions

setMaxPartitions(long maxPartitions)

public PartitionOptions.Builder setMaxPartitions(long maxPartitions)
Parameter
Name Description
maxPartitions long
Returns
Type Description
PartitionOptions.Builder

setPartitionSizeBytes(long partitionSizeBytes)

public PartitionOptions.Builder setPartitionSizeBytes(long partitionSizeBytes)

The desired data size for each partition generated. This is only a hint. The actual size of each partition may be smaller or larger than this size request.

Parameter
Name Description
partitionSizeBytes long

configuration for size of the partitions returned

Returns
Type Description
PartitionOptions.Builder