Class RangeBoundaryBuilder<T>

  • Type Parameters:
    T -
    All Implemented Interfaces:
    Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.MapPartitionFunction<T,​Object[][]>, org.apache.flink.api.common.functions.RichFunction

    public class RangeBoundaryBuilder<T>
    extends org.apache.flink.api.common.functions.RichMapPartitionFunction<T,​Object[][]>
    Build RangeBoundaries with input records. First, sort the input records, and then select the boundaries with same interval.
    See Also:
    Serialized Form
    • Constructor Detail

      • RangeBoundaryBuilder

        public RangeBoundaryBuilder​(org.apache.flink.api.common.typeutils.TypeComparatorFactory<T> comparator,
                                    int parallelism)
    • Method Detail

      • mapPartition

        public void mapPartition​(Iterable<T> values,
                                 org.apache.flink.util.Collector<Object[][]> out)
                          throws Exception
        Specified by:
        mapPartition in interface org.apache.flink.api.common.functions.MapPartitionFunction<T,​Object[][]>
        Specified by:
        mapPartition in class org.apache.flink.api.common.functions.RichMapPartitionFunction<T,​Object[][]>
        Throws:
        Exception