public final class PythonBridgeUtils extends Object
Constructor and Description |
---|
PythonBridgeUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
convertLiteralToPython(RexLiteral o,
org.apache.calcite.sql.type.SqlTypeName typeName) |
static Object |
getPickledBytesFromRow(Row row,
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(RexLiteral o, org.apache.calcite.sql.type.SqlTypeName typeName)
public static List<byte[]> readPickledBytes(String fileName) throws IOException
IOException
public static Object getPickledBytesFromRow(Row row, DataType[] dataTypes) throws IOException
IOException
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.