IN - Type of the input elements.OUT - Type of the returned elements.@Public public abstract class RichFlatMapFunction<IN,OUT> extends AbstractRichFunction implements FlatMapFunction<IN,OUT>
FlatMapFunction. As a RichFunction, it gives access to the
RuntimeContext and provides setup and teardown methods:
RichFunction.open(org.apache.flink.configuration.Configuration) and
RichFunction.close().| Constructor and Description |
|---|
RichFlatMapFunction() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
flatMap(IN value,
Collector<OUT> out)
The core method of the FlatMapFunction.
|
close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContextpublic abstract void flatMap(IN value, Collector<OUT> out) throws Exception
FlatMapFunctionflatMap in interface FlatMapFunction<IN,OUT>value - The input value.out - The collector for returning result values.Exception - This method may throw exceptions. Throwing an exception will cause the operation
to fail and may trigger recovery.Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.