Class RangeBoundaryBuilder<T>

java.lang.Object
org.apache.flink.api.common.functions.AbstractRichFunction
org.apache.flink.api.common.functions.RichMapPartitionFunction<T,Object[][]>
org.apache.flink.runtime.operators.udf.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:
  • Constructor Summary

    Constructors
    Constructor
    Description
    RangeBoundaryBuilder(org.apache.flink.api.common.typeutils.TypeComparatorFactory<T> comparator, int parallelism)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    mapPartition(Iterable<T> values, org.apache.flink.util.Collector<Object[][]> out)
     

    Methods inherited from class org.apache.flink.api.common.functions.AbstractRichFunction

    close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RangeBoundaryBuilder

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

    • 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