Class PythonConnectorUtils


  • public class PythonConnectorUtils
    extends Object
    Utility class for using DataStream connectors in Python.
    • Constructor Detail

      • PythonConnectorUtils

        public PythonConnectorUtils()
    • Method Detail

      • createFirstColumnTopicSelector

        public static <T> T createFirstColumnTopicSelector​(Class<T> clazz)
        Creates a selector that returns the first column of a row, and cast it to clazz. T should be a sub interface of Function, which accepts a Row.
        Type Parameters:
        T - An interface
        Parameters:
        clazz - The desired selector class to cast to, e.g. TopicSelector.class for Kafka.