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