Class IntSerializer
- java.lang.Object
-
- org.apache.flink.api.common.typeutils.TypeSerializer<T>
-
- org.apache.flink.cdc.runtime.serializer.TypeSerializerSingleton<Integer>
-
- org.apache.flink.cdc.runtime.serializer.IntSerializer
-
- All Implemented Interfaces:
Serializable
public final class IntSerializer extends TypeSerializerSingleton<Integer>
Type serializer forInteger(andint, via auto-boxing).- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIntSerializer.IntSerializerSnapshotSerializer configuration snapshot for compatibility and format evolution.
-
Field Summary
Fields Modifier and Type Field Description static IntSerializerINSTANCESharable instance of the IntSerializer.
-
Constructor Summary
Constructors Constructor Description IntSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integercopy(Integer from)Integercopy(Integer from, Integer reuse)voidcopy(org.apache.flink.core.memory.DataInputView source, org.apache.flink.core.memory.DataOutputView target)IntegercreateInstance()Integerdeserialize(Integer reuse, org.apache.flink.core.memory.DataInputView source)Integerdeserialize(org.apache.flink.core.memory.DataInputView source)intgetLength()booleanisImmutableType()voidserialize(Integer record, org.apache.flink.core.memory.DataOutputView target)org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<Integer>snapshotConfiguration()-
Methods inherited from class org.apache.flink.cdc.runtime.serializer.TypeSerializerSingleton
duplicate, equals, hashCode
-
-
-
-
Field Detail
-
INSTANCE
public static final IntSerializer INSTANCE
Sharable instance of the IntSerializer.
-
-
Method Detail
-
isImmutableType
public boolean isImmutableType()
- Specified by:
isImmutableTypein classorg.apache.flink.api.common.typeutils.TypeSerializer<Integer>
-
createInstance
public Integer createInstance()
- Specified by:
createInstancein classorg.apache.flink.api.common.typeutils.TypeSerializer<Integer>
-
copy
public Integer copy(Integer from)
- Specified by:
copyin classorg.apache.flink.api.common.typeutils.TypeSerializer<Integer>
-
copy
public Integer copy(Integer from, Integer reuse)
- Specified by:
copyin classorg.apache.flink.api.common.typeutils.TypeSerializer<Integer>
-
getLength
public int getLength()
- Specified by:
getLengthin classorg.apache.flink.api.common.typeutils.TypeSerializer<Integer>
-
serialize
public void serialize(Integer record, org.apache.flink.core.memory.DataOutputView target) throws IOException
- Specified by:
serializein classorg.apache.flink.api.common.typeutils.TypeSerializer<Integer>- Throws:
IOException
-
deserialize
public Integer deserialize(org.apache.flink.core.memory.DataInputView source) throws IOException
- Specified by:
deserializein classorg.apache.flink.api.common.typeutils.TypeSerializer<Integer>- Throws:
IOException
-
deserialize
public Integer deserialize(Integer reuse, org.apache.flink.core.memory.DataInputView source) throws IOException
- Specified by:
deserializein classorg.apache.flink.api.common.typeutils.TypeSerializer<Integer>- Throws:
IOException
-
copy
public void copy(org.apache.flink.core.memory.DataInputView source, org.apache.flink.core.memory.DataOutputView target) throws IOException- Specified by:
copyin classorg.apache.flink.api.common.typeutils.TypeSerializer<Integer>- Throws:
IOException
-
-