Class PythonConnectorUtils

java.lang.Object
org.apache.flink.python.util.PythonConnectorUtils

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

    • PythonConnectorUtils

      public PythonConnectorUtils()
  • Method Details

    • 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.