Class PythonTypeUtils

java.lang.Object
org.apache.flink.streaming.api.utils.PythonTypeUtils

@Internal public class PythonTypeUtils extends Object
A util class for converting the given TypeInformation to other objects.
  • Constructor Details

    • PythonTypeUtils

      public PythonTypeUtils()
  • Method Details

    • getCollectionInputFormat

      public static <T> org.apache.flink.api.common.io.InputFormat<T,?> getCollectionInputFormat(List<T> data, org.apache.flink.api.common.typeinfo.TypeInformation<T> dataType, org.apache.flink.api.common.ExecutionConfig config)
      Wrap the unpickled python data with an InputFormat. It will be passed to StreamExecutionEnvironment.creatInput() to create an InputFormat later.
      Parameters:
      data - The unpickled python data.
      dataType - The python data type.
      config - The execution config used to create serializer.
      Returns:
      An InputFormat containing the python data.