public final class ShortSerializer extends SerializerSingleton<Short>
Short (and short, via auto-boxing).| 限定符和类型 | 字段和说明 |
|---|---|
static ShortSerializer |
INSTANCE
Sharable instance of the IntSerializer.
|
| 构造器和说明 |
|---|
ShortSerializer() |
| 限定符和类型 | 方法和说明 |
|---|---|
Short |
copy(Short from)
Creates a deep copy of the given element in a new element.
|
Short |
deserialize(DataInputView source)
De-serializes a record from the given source input view.
|
void |
serialize(Short record,
DataOutputView target)
Serializes the given record to the given target output view.
|
duplicate, equals, hashCodepublic static final ShortSerializer INSTANCE
public Short copy(Short from)
Serializerfrom - The element reuse be copied.public void serialize(Short 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 Short 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.Copyright © 2023 The Apache Software Foundation. All rights reserved.