@Deprecated public abstract class MapPartitionFunction extends org.apache.flink.api.common.functions.AbstractRichFunction implements org.apache.flink.api.common.functions.MapPartitionFunction<org.apache.flink.types.Record,org.apache.flink.types.Record>
| Constructor and Description |
|---|
MapPartitionFunction()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
mapPartition(Iterable<org.apache.flink.types.Record> values,
org.apache.flink.util.Collector<org.apache.flink.types.Record> out)
Deprecated.
This method must be implemented to provide a user implementation of a MapPartitionFunction.
|
public abstract void mapPartition(Iterable<org.apache.flink.types.Record> values, org.apache.flink.util.Collector<org.apache.flink.types.Record> out) throws Exception
mapPartition in interface org.apache.flink.api.common.functions.MapPartitionFunction<org.apache.flink.types.Record,org.apache.flink.types.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 © 2014–2015 The Apache Software Foundation. All rights reserved.