Class RangePartitioner
- java.lang.Object
-
- org.apache.iceberg.flink.sink.shuffle.RangePartitioner
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.flink.api.common.functions.Function
,org.apache.flink.api.common.functions.Partitioner<StatisticsOrRecord>
@Internal public class RangePartitioner extends java.lang.Object implements org.apache.flink.api.common.functions.Partitioner<StatisticsOrRecord>
This custom partitioner implements theDistributionMode.RANGE
for Flink sink.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RangePartitioner(Schema schema, SortOrder sortOrder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
partition(StatisticsOrRecord wrapper, int numPartitions)
-
-
-
Method Detail
-
partition
public int partition(StatisticsOrRecord wrapper, int numPartitions)
- Specified by:
partition
in interfaceorg.apache.flink.api.common.functions.Partitioner<StatisticsOrRecord>
-
-