T
- public class RangeBoundaryBuilder<T> extends RichMapPartitionFunction<T,Object[][]>
Constructor and Description |
---|
RangeBoundaryBuilder(TypeComparatorFactory<T> comparator,
int parallelism) |
Modifier and Type | Method and Description |
---|---|
void |
mapPartition(Iterable<T> values,
Collector<Object[][]> out)
A user-implemented function that modifies or transforms an incoming object.
|
close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContext
public RangeBoundaryBuilder(TypeComparatorFactory<T> comparator, int parallelism)
public void mapPartition(Iterable<T> values, Collector<Object[][]> out) throws Exception
MapPartitionFunction
mapPartition
in interface MapPartitionFunction<T,Object[][]>
mapPartition
in class RichMapPartitionFunction<T,Object[][]>
values
- All records for the mapperout
- The collector to hand results to.Exception
- This method may throw exceptions. Throwing an exception will cause the
operation to fail and may trigger recovery.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.