Class 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 the DistributionMode.RANGE for Flink sink.
    See Also:
    Serialized Form
    • Constructor Detail

      • RangePartitioner

        public RangePartitioner​(Schema schema,
                                SortOrder sortOrder)
    • Method Detail

      • partition

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