Package org.apache.flink.python.util
Class PythonConnectorUtils
java.lang.Object
org.apache.flink.python.util.PythonConnectorUtils
Utility class for using DataStream connectors in Python.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe serializableInvocationHandleras the proxy for first column selector.static classAProcessFunctionthat convertRowtoRowData.static classASerializationSchemaforRowthat only serialize the second column using a wrappedSerializationSchemaforPythonConnectorUtils.SecondColumnSerializationSchema. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TcreateFirstColumnTopicSelector(Class<T> clazz) Creates a selector that returns the first column of a row, and cast it toclazz.
-
Constructor Details
-
PythonConnectorUtils
public PythonConnectorUtils()
-
-
Method Details
-
createFirstColumnTopicSelector
Creates a selector that returns the first column of a row, and cast it toclazz.Tshould be a sub interface ofFunction, which accepts aRow.- Type Parameters:
T- An interface- Parameters:
clazz- The desired selector class to cast to, e.g. TopicSelector.class for Kafka.
-