Class PythonBridgeUtils
java.lang.Object
org.apache.flink.api.common.python.PythonBridgeUtils
Utility class that contains helper methods to create a TableSource from a file which contains
Python objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectgetPickledBytesFromJavaObject(Object obj, org.apache.flink.api.common.typeinfo.TypeInformation<?> dataType) static ObjectgetPickledBytesFromRow(org.apache.flink.types.Row row, org.apache.flink.table.types.DataType[] dataTypes) static byte[]pickleValue(Object value, byte type) static List<byte[]>readPickledBytes(String fileName) static List<?>readPythonObjects(String fileName) readPythonObjects(String fileName, boolean batched)
-
Constructor Details
-
PythonBridgeUtils
public PythonBridgeUtils()
-
-
Method Details
-
readPythonObjects
- Throws:
IOException
-
readPythonObjects
- Throws:
IOException
-
pickleValue
-
readPickledBytes
- Throws:
IOException
-
getPickledBytesFromJavaObject
public static Object getPickledBytesFromJavaObject(Object obj, org.apache.flink.api.common.typeinfo.TypeInformation<?> dataType) throws IOException - Throws:
IOException
-
getPickledBytesFromRow
public static Object getPickledBytesFromRow(org.apache.flink.types.Row row, org.apache.flink.table.types.DataType[] dataTypes) throws IOException - Throws:
IOException
-