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