IN - The original data type.public class AssignRangeIndex<IN> extends RichMapPartitionFunction<IN,Tuple2<Integer,IN>>
| Constructor and Description |
|---|
AssignRangeIndex(TypeComparatorFactory<IN> typeComparator) |
| Modifier and Type | Method and Description |
|---|---|
void |
mapPartition(Iterable<IN> values,
Collector<Tuple2<Integer,IN>> out) |
close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContextpublic AssignRangeIndex(TypeComparatorFactory<IN> typeComparator)
public void mapPartition(Iterable<IN> values, Collector<Tuple2<Integer,IN>> out) throws Exception
mapPartition in interface MapPartitionFunction<IN,Tuple2<Integer,IN>>mapPartition in class RichMapPartitionFunction<IN,Tuple2<Integer,IN>>ExceptionCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.