public final class PythonBridgeUtils extends Object
| Constructor and Description |
|---|
PythonBridgeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
convertLiteralToPython(org.apache.calcite.rex.RexLiteral o,
org.apache.calcite.sql.type.SqlTypeName typeName) |
static Object |
getPickledBytesFromJavaObject(Object obj,
org.apache.flink.api.common.typeinfo.TypeInformation<?> dataType) |
static Object |
getPickledBytesFromRow(org.apache.flink.types.Row row,
org.apache.flink.table.types.DataType[] dataTypes) |
static List<byte[]> |
readPickledBytes(String fileName) |
static List<?> |
readPythonObjects(String fileName) |
static List<Object[]> |
readPythonObjects(String fileName,
boolean batched) |
public static List<Object[]> readPythonObjects(String fileName, boolean batched) throws IOException
IOExceptionpublic static List<?> readPythonObjects(String fileName) throws IOException
IOExceptionpublic static byte[] convertLiteralToPython(org.apache.calcite.rex.RexLiteral o,
org.apache.calcite.sql.type.SqlTypeName typeName)
public static List<byte[]> readPickledBytes(String fileName) throws IOException
IOExceptionpublic static Object getPickledBytesFromJavaObject(Object obj, org.apache.flink.api.common.typeinfo.TypeInformation<?> dataType) throws IOException
IOExceptionpublic static Object getPickledBytesFromRow(org.apache.flink.types.Row row, org.apache.flink.table.types.DataType[] dataTypes) throws IOException
IOExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.