public final class ShortSerializer extends TypeSerializerSingleton<Short>
Byte.| Modifier and Type | Class and Description |
|---|---|
static class |
ShortSerializer.ShortSerializerSnapshot
Serializer configuration snapshot for compatibility and format evolution.
|
| Modifier and Type | Field and Description |
|---|---|
static ShortSerializer |
INSTANCE
Sharable instance of the ShortSerializer.
|
| Constructor and Description |
|---|
ShortSerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
copy(org.apache.flink.core.memory.DataInputView source,
org.apache.flink.core.memory.DataOutputView target) |
Short |
copy(Short from) |
Short |
copy(Short from,
Short reuse) |
Short |
createInstance() |
Short |
deserialize(org.apache.flink.core.memory.DataInputView source) |
Short |
deserialize(Short reuse,
org.apache.flink.core.memory.DataInputView source) |
int |
getLength() |
boolean |
isImmutableType() |
void |
serialize(Short record,
org.apache.flink.core.memory.DataOutputView target) |
org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<Short> |
snapshotConfiguration() |
duplicate, equals, hashCodepublic static final ShortSerializer INSTANCE
public boolean isImmutableType()
isImmutableType in class org.apache.flink.api.common.typeutils.TypeSerializer<Short>public Short createInstance()
createInstance in class org.apache.flink.api.common.typeutils.TypeSerializer<Short>public Short copy(Short from)
copy in class org.apache.flink.api.common.typeutils.TypeSerializer<Short>public Short copy(Short from, Short reuse)
copy in class org.apache.flink.api.common.typeutils.TypeSerializer<Short>public int getLength()
getLength in class org.apache.flink.api.common.typeutils.TypeSerializer<Short>public void serialize(Short record, org.apache.flink.core.memory.DataOutputView target) throws IOException
serialize in class org.apache.flink.api.common.typeutils.TypeSerializer<Short>IOExceptionpublic Short deserialize(org.apache.flink.core.memory.DataInputView source) throws IOException
deserialize in class org.apache.flink.api.common.typeutils.TypeSerializer<Short>IOExceptionpublic Short deserialize(Short reuse, org.apache.flink.core.memory.DataInputView source) throws IOException
deserialize in class org.apache.flink.api.common.typeutils.TypeSerializer<Short>IOExceptionpublic void copy(org.apache.flink.core.memory.DataInputView source,
org.apache.flink.core.memory.DataOutputView target)
throws IOException
copy in class org.apache.flink.api.common.typeutils.TypeSerializer<Short>IOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.