public class PythonReduceFunction extends Object implements org.apache.flink.api.common.functions.ReduceFunction<org.python.core.PyObject>
PythonReduceFunction is a thin wrapper layer over a Python UDF ReduceFunction.
It receives a ReduceFunction 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 ReduceFunction.
This function is used internally by the Python thin wrapper layer over the streaming data functionality
| Constructor and Description |
|---|
PythonReduceFunction(org.apache.flink.api.common.functions.ReduceFunction<org.python.core.PyObject> fun) |
| Modifier and Type | Method and Description |
|---|---|
org.python.core.PyObject |
reduce(org.python.core.PyObject value1,
org.python.core.PyObject value2) |
public PythonReduceFunction(org.apache.flink.api.common.functions.ReduceFunction<org.python.core.PyObject> fun)
throws IOException
IOExceptionCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.