@Deprecated public abstract class MapFunction extends org.apache.flink.api.common.functions.AbstractRichFunction implements org.apache.flink.api.common.functions.GenericCollectorMap<org.apache.flink.types.Record,org.apache.flink.types.Record>
| Constructor and Description |
|---|
MapFunction()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
map(org.apache.flink.types.Record record,
org.apache.flink.util.Collector<org.apache.flink.types.Record> out)
Deprecated.
This method must be implemented to provide a user implementation of a mapper.
|
close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContextpublic abstract void map(org.apache.flink.types.Record record,
org.apache.flink.util.Collector<org.apache.flink.types.Record> out)
throws Exception
map in interface org.apache.flink.api.common.functions.GenericCollectorMap<org.apache.flink.types.Record,org.apache.flink.types.Record>record - The record to be mapped.out - 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.