public class PythonSinkFunction extends AbstractPythonUDF<org.apache.flink.streaming.api.functions.sink.SinkFunction<org.python.core.PyObject>> implements org.apache.flink.streaming.api.functions.sink.SinkFunction<org.python.core.PyObject>
PythonSinkFunction is a thin wrapper layer over a Python UDF SinkFunction.
It receives a SinkFunction 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 SinkFunction.
This function is used internally by the Python thin wrapper layer over the streaming data functionality
fun, log| Constructor and Description |
|---|
PythonSinkFunction(org.apache.flink.streaming.api.functions.sink.SinkFunction<org.python.core.PyObject> fun) |
| Modifier and Type | Method and Description |
|---|---|
void |
invoke(org.python.core.PyObject value,
org.apache.flink.streaming.api.functions.sink.SinkFunction.Context context) |
close, opengetIterationRuntimeContext, getRuntimeContext, setRuntimeContextpublic PythonSinkFunction(org.apache.flink.streaming.api.functions.sink.SinkFunction<org.python.core.PyObject> fun)
throws IOException
IOExceptionCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.