public class InternalArraySerializer extends Object implements Serializer<InternalArray>
InternalArray.| Constructor and Description |
|---|
InternalArraySerializer(DataType eleType) |
| Modifier and Type | Method and Description |
|---|---|
InternalArray |
copy(InternalArray from)
Creates a deep copy of the given element in a new element.
|
InternalArray |
deserialize(DataInputView source)
De-serializes a record from the given source input view.
|
InternalArraySerializer |
duplicate()
Creates a deep copy of this serializer if it is necessary, i.e.
|
boolean |
equals(Object o) |
int |
hashCode() |
void |
serialize(InternalArray record,
DataOutputView target)
Serializes the given record to the given target output view.
|
BinaryArray |
toBinaryArray(InternalArray from) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitdeserializeFromString, serializeToStringpublic InternalArraySerializer(DataType eleType)
public InternalArraySerializer duplicate()
SerializerWe need this because Serializers might be used in several threads. Stateless serializers are inherently thread-safe while stateful serializers might not be thread-safe.
duplicate in interface Serializer<InternalArray>public InternalArray copy(InternalArray from)
Serializercopy in interface Serializer<InternalArray>from - The element reuse be copied.public void serialize(InternalArray record, DataOutputView target) throws IOException
Serializerserialize in interface Serializer<InternalArray>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 BinaryArray toBinaryArray(InternalArray from)
public InternalArray deserialize(DataInputView source) throws IOException
Serializerdeserialize in interface Serializer<InternalArray>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–2024 The Apache Software Foundation. All rights reserved.