public class PythonGeneratorFunction extends AbstractPythonUDF<org.apache.flink.streaming.api.functions.source.SourceFunction<Object>> implements org.apache.flink.streaming.api.functions.source.SourceFunction<Object>
PythonGeneratorFunction is a thin wrapper layer over a Python UDF SourceFunction.
It receives a SourceFunction 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 SourceFunction.
This function is used internally by the Python thin wrapper layer over the streaming data functionality
fun, log| Constructor and Description |
|---|
PythonGeneratorFunction(org.apache.flink.streaming.api.functions.source.SourceFunction<Object> fun) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
run(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<Object> ctx) |
close, openpublic PythonGeneratorFunction(org.apache.flink.streaming.api.functions.source.SourceFunction<Object> fun) throws IOException
IOExceptionCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.