public final class LongSerializer extends SerializerSingleton<Long>
Integer (and int, via auto-boxing).| Modifier and Type | Field and Description |
|---|---|
static LongSerializer |
INSTANCE
Sharable instance of the IntSerializer.
|
| Constructor and Description |
|---|
LongSerializer() |
| Modifier and Type | Method and Description |
|---|---|
Long |
copy(Long from)
Creates a deep copy of the given element in a new element.
|
Long |
deserialize(DataInputView source)
De-serializes a record from the given source input view.
|
Long |
deserializeFromString(String s)
De-serializes a record from string.
|
void |
serialize(Long record,
DataOutputView target)
Serializes the given record to the given target output view.
|
String |
serializeToString(Long record)
Serializes the given record to string.
|
duplicate, equals, hashCodepublic static final LongSerializer INSTANCE
public Long copy(Long from)
Serializerfrom - The element reuse be copied.public void serialize(Long record, DataOutputView target) throws IOException
Serializerrecord - 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 Long deserialize(DataInputView source) throws IOException
Serializersource - 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 String serializeToString(Long record)
Serializerrecord - The record to serialize.public Long deserializeFromString(String s)
Serializers - The string to de-serialize.Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.