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
IOException
public static List<?> readPythonObjects(String fileName) throws IOException
IOException
public 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
IOException
public static Object getPickledBytesFromJavaObject(Object obj, org.apache.flink.api.common.typeinfo.TypeInformation<?> dataType) throws IOException
IOException
public static Object getPickledBytesFromRow(org.apache.flink.types.Row row, org.apache.flink.table.types.DataType[] dataTypes) throws IOException
IOException
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.