public class SerializationUtils extends Object
| Constructor and Description |
|---|
SerializationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static BinaryRow |
deserializeBinaryRow(byte[] bytes)
Schemaless deserialization for
BinaryRow. |
static BinaryRow |
deserializeBinaryRow(DataInputView input)
Schemaless deserialization for
BinaryRow from a DataInputView. |
static byte[] |
deserializedBytes(DataInputView in)
Deserialize a
byte[] bytes with length. |
static VarBinaryType |
newBytesType(boolean isNullable)
Create a bytes type VarBinaryType(VarBinaryType.MAX_LENGTH).
|
static VarCharType |
newStringType(boolean isNullable)
Create a varchar type VarCharType(VarCharType.MAX_LENGTH).
|
static byte[] |
serializeBinaryRow(BinaryRow row)
Serialize
BinaryRow, the difference between this and BinaryRowSerializer is
that arity is also serialized here, so the deserialization is schemaless. |
static void |
serializeBinaryRow(BinaryRow row,
DataOutputView out)
Serialize
BinaryRow to a DataOutputView. |
static void |
serializeBytes(DataOutputView out,
byte[] binary)
Serialize a
byte[] bytes with length. |
public static void serializeBytes(DataOutputView out, byte[] binary) throws IOException
byte[] bytes with length.IOExceptionpublic static byte[] deserializedBytes(DataInputView in) throws IOException
byte[] bytes with length.IOExceptionpublic static VarBinaryType newBytesType(boolean isNullable)
public static VarCharType newStringType(boolean isNullable)
public static byte[] serializeBinaryRow(BinaryRow row)
BinaryRow, the difference between this and BinaryRowSerializer is
that arity is also serialized here, so the deserialization is schemaless.public static BinaryRow deserializeBinaryRow(byte[] bytes)
BinaryRow.public static void serializeBinaryRow(BinaryRow row, DataOutputView out) throws IOException
BinaryRow to a DataOutputView.IOExceptionserializeBinaryRow(BinaryRow)public static BinaryRow deserializeBinaryRow(DataInputView input) throws IOException
BinaryRow from a DataInputView.IOExceptionCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.