public class VariantSerializer extends SerializerSingleton<Variant>
Variant
.Modifier and Type | Field and Description |
---|---|
static VariantSerializer |
INSTANCE |
Constructor and Description |
---|
VariantSerializer() |
Modifier and Type | Method and Description |
---|---|
Variant |
copy(Variant from)
Creates a deep copy of the given element in a new element.
|
Variant |
deserialize(DataInputView source)
De-serializes a record from the given source input view.
|
void |
serialize(Variant record,
DataOutputView target)
Serializes the given record to the given target output view.
|
duplicate, equals, hashCode
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
deserializeFromString, serializeToString
public static final VariantSerializer INSTANCE
public Variant copy(Variant from)
Serializer
from
- The element reuse be copied.public void serialize(Variant record, DataOutputView target) throws IOException
Serializer
record
- 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 Variant 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.Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.