public final class PythonBridgeUtils extends Object
Constructor and Description |
---|
PythonBridgeUtils() |
Modifier and Type | Method and Description |
---|---|
static Object |
getPickledBytesFromJavaObject(Object obj,
TypeInformation<?> dataType) |
static Object |
getPickledBytesFromRow(Row row,
DataType[] dataTypes) |
static byte[] |
pickleValue(Object value,
byte type) |
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[] pickleValue(Object value, byte type)
public static List<byte[]> readPickledBytes(String fileName) throws IOException
IOException
public static Object getPickledBytesFromJavaObject(Object obj, TypeInformation<?> dataType) throws IOException
IOException
public static Object getPickledBytesFromRow(Row row, DataType[] dataTypes) throws IOException
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.