Class PartitionOptions.Builder (6.60.0)

public static class PartitionOptions.Builder

Builder for PartitionOptions instance.

Inheritance

java.lang.Object > PartitionOptions.Builder

Methods

build()

public PartitionOptions build()
Returns
TypeDescription
PartitionOptions

setMaxPartitions(long maxPartitions)

public PartitionOptions.Builder setMaxPartitions(long maxPartitions)
Parameter
NameDescription
maxPartitionslong
Returns
TypeDescription
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
NameDescription
partitionSizeByteslong

configuration for size of the partitions returned

Returns
TypeDescription
PartitionOptions.Builder