public class PythonApplyFunction<W extends org.apache.flink.streaming.api.windowing.windows.Window> extends AbstractPythonUDF<org.apache.flink.streaming.api.functions.windowing.WindowFunction<org.python.core.PyObject,Object,Object,W>> implements org.apache.flink.streaming.api.functions.windowing.WindowFunction<org.python.core.PyObject,org.python.core.PyObject,PyKey,W>
PythonApplyFunction is a thin wrapper layer over a Python UDF WindowFunction.
It receives an WindowFunction as an input and keeps it internally in a serialized form.
It is then delivered, as part of job graph, up to the TaskManager, then it is opened and becomes
a sort of mediator to the Python UDF WindowFunction.
This function is used internally by the Python thin wrapper layer over the streaming data functionality
fun, log| Constructor and Description |
|---|
PythonApplyFunction(org.apache.flink.streaming.api.functions.windowing.WindowFunction<org.python.core.PyObject,Object,Object,W> fun) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(PyKey key,
W window,
Iterable<org.python.core.PyObject> values,
org.apache.flink.util.Collector<org.python.core.PyObject> out) |
void |
open(org.apache.flink.configuration.Configuration config) |
closepublic PythonApplyFunction(org.apache.flink.streaming.api.functions.windowing.WindowFunction<org.python.core.PyObject,Object,Object,W> 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.streaming.api.functions.windowing.WindowFunction<org.python.core.PyObject,Object,Object,W extends org.apache.flink.streaming.api.windowing.windows.Window>>ExceptionCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.