public final class BinaryStringSerializer extends SerializerSingleton<BinaryString>
BinaryString
.Modifier and Type | Field and Description |
---|---|
static BinaryStringSerializer |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
BinaryString |
copy(BinaryString from)
Creates a deep copy of the given element in a new element.
|
BinaryString |
deserialize(DataInputView source)
De-serializes a record from the given source input view.
|
BinaryString |
deserializeFromString(String s)
De-serializes a record from string.
|
static BinaryString |
deserializeInternal(DataInputView source) |
void |
serialize(BinaryString string,
DataOutputView target)
Serializes the given record to the given target output view.
|
String |
serializeToString(BinaryString record)
Serializes the given record to string.
|
duplicate, equals, hashCode
public static final BinaryStringSerializer INSTANCE
public BinaryString copy(BinaryString from)
Serializer
from
- The element reuse be copied.public void serialize(BinaryString string, DataOutputView target) throws IOException
Serializer
string
- The record to serialize.target
- The output view to write the serialized data to.IOException
- Thrown, if the serialization encountered an I/O related error. Typically
raised by the output view, which may have an underlying I/O channel to which it
delegates.public BinaryString deserialize(DataInputView source) throws IOException
Serializer
source
- The input view from which to read the data.IOException
- Thrown, if the de-serialization encountered an I/O related error.
Typically raised by the input view, which may have an underlying I/O channel from which
it reads.public static BinaryString deserializeInternal(DataInputView source) throws IOException
IOException
public String serializeToString(BinaryString record)
Serializer
record
- The record to serialize.public BinaryString deserializeFromString(String s)
Serializer
s
- The string to de-serialize.Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.