public class PythonFlatMapFunction extends AbstractPythonUDF<org.apache.flink.api.common.functions.FlatMapFunction<org.python.core.PyObject,Object>> implements org.apache.flink.api.common.functions.FlatMapFunction<org.python.core.PyObject,org.python.core.PyObject>
PythonFlatMapFunction is a thin wrapper layer over a Python UDF FlatMapFunction.
It receives a FlatMapFunction as an input and keeps it internally in a serialized form.
It is then delivered, as part of the job graph, up to the TaskManager, then it is opened and becomes
a sort of mediator to the Python UDF FlatMapFunction.
This function is used internally by the Python thin wrapper layer over the streaming data functionality
fun, log| Constructor and Description |
|---|
PythonFlatMapFunction(org.apache.flink.api.common.functions.FlatMapFunction<org.python.core.PyObject,Object> fun) |
| Modifier and Type | Method and Description |
|---|---|
void |
flatMap(org.python.core.PyObject value,
org.apache.flink.util.Collector<org.python.core.PyObject> out) |
void |
open(org.apache.flink.configuration.Configuration config) |
closepublic PythonFlatMapFunction(org.apache.flink.api.common.functions.FlatMapFunction<org.python.core.PyObject,Object> fun) throws IOException
IOExceptionpublic void open(org.apache.flink.configuration.Configuration config)
throws Exception
open in interface org.apache.flink.api.common.functions.RichFunctionopen in class AbstractPythonUDF<org.apache.flink.api.common.functions.FlatMapFunction<org.python.core.PyObject,Object>>ExceptionCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.