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
,Function
,MapPartitionFunction<T,Object[][]>
,RichFunction
public class RangeBoundaryBuilder<T> extends 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 Summary
Constructors Constructor Description RangeBoundaryBuilder(TypeComparatorFactory<T> comparator, int parallelism)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
mapPartition(Iterable<T> values, Collector<Object[][]> out)
A user-implemented function that modifies or transforms an incoming object.-
Methods inherited from class org.apache.flink.api.common.functions.AbstractRichFunction
close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContext
-
-
-
-
Constructor Detail
-
RangeBoundaryBuilder
public RangeBoundaryBuilder(TypeComparatorFactory<T> comparator, int parallelism)
-
-
Method Detail
-
mapPartition
public void mapPartition(Iterable<T> values, Collector<Object[][]> out) throws Exception
Description copied from interface:MapPartitionFunction
A user-implemented function that modifies or transforms an incoming object.- Specified by:
mapPartition
in interfaceMapPartitionFunction<T,Object[][]>
- Specified by:
mapPartition
in classRichMapPartitionFunction<T,Object[][]>
- Parameters:
values
- All records for the mapperout
- The collector to hand results to.- Throws:
Exception
- This method may throw exceptions. Throwing an exception will cause the operation to fail and may trigger recovery.
-
-