Class RangePartitioner

java.lang.Object
org.apache.iceberg.flink.sink.shuffle.RangePartitioner
All Implemented Interfaces:
Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.Partitioner<StatisticsOrRecord>

@Internal public class RangePartitioner extends Object implements org.apache.flink.api.common.functions.Partitioner<StatisticsOrRecord>
This custom partitioner implements the DistributionMode.RANGE for Flink sink.
See Also:
  • Constructor Details

    • RangePartitioner

      public RangePartitioner(Schema schema, SortOrder sortOrder)
  • Method Details

    • partition

      public int partition(StatisticsOrRecord wrapper, int numPartitions)
      Specified by:
      partition in interface org.apache.flink.api.common.functions.Partitioner<StatisticsOrRecord>