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