- Type Parameters:
IN
- The original data type.
- All Implemented Interfaces:
- Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.MapPartitionFunction<IN,org.apache.flink.api.java.tuple.Tuple2<Integer,IN>>, org.apache.flink.api.common.functions.RichFunction
public class AssignRangeIndex<IN>
extends org.apache.flink.api.common.functions.RichMapPartitionFunction<IN,org.apache.flink.api.java.tuple.Tuple2<Integer,IN>>
This mapPartition function require a DataSet with RangeBoundaries as broadcast input, it generate
Tuple2 which includes range index and record itself as output.
- See Also:
- Serialized Form