@Deprecated public abstract class MapPartitionFunction extends AbstractRichFunction implements MapPartitionFunction<Record,Record>
| Constructor and Description |
|---|
MapPartitionFunction()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
mapPartition(Iterable<Record> values,
Collector<Record> out)
Deprecated.
This method must be implemented to provide a user implementation of a MapPartitionFunction.
|
close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContextpublic abstract void mapPartition(Iterable<Record> values, Collector<Record> out) throws Exception
mapPartition in interface MapPartitionFunction<Record,Record>values - all input recordsout - A collector that collects all output records.Exception - Implementations may forward exceptions, which are caught by the runtime. When the
runtime catches an exception, it aborts the map task and lets the fail-over logic
decide whether to retry the mapper execution.Copyright © 2015 The Apache Software Foundation. All rights reserved.