Class LongSerializer
- java.lang.Object
-
- org.apache.flink.api.common.typeutils.TypeSerializer<T>
-
- org.apache.flink.cdc.runtime.serializer.TypeSerializerSingleton<Long>
-
- org.apache.flink.cdc.runtime.serializer.LongSerializer
-
- All Implemented Interfaces:
Serializable
public final class LongSerializer extends TypeSerializerSingleton<Long>
Type serializer forLong.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLongSerializer.LongSerializerSnapshotSerializer configuration snapshot for compatibility and format evolution.
-
Field Summary
Fields Modifier and Type Field Description static LongSerializerINSTANCESharable instance of the LongSerializer.
-
Constructor Summary
Constructors Constructor Description LongSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Longcopy(Long from)Longcopy(Long from, Long reuse)voidcopy(org.apache.flink.core.memory.DataInputView source, org.apache.flink.core.memory.DataOutputView target)LongcreateInstance()Longdeserialize(Long reuse, org.apache.flink.core.memory.DataInputView source)Longdeserialize(org.apache.flink.core.memory.DataInputView source)intgetLength()booleanisImmutableType()voidserialize(Long record, org.apache.flink.core.memory.DataOutputView target)org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<Long>snapshotConfiguration()-
Methods inherited from class org.apache.flink.cdc.runtime.serializer.TypeSerializerSingleton
duplicate, equals, hashCode
-
-
-
-
Field Detail
-
INSTANCE
public static final LongSerializer INSTANCE
Sharable instance of the LongSerializer.
-
-
Method Detail
-
isImmutableType
public boolean isImmutableType()
- Specified by:
isImmutableTypein classorg.apache.flink.api.common.typeutils.TypeSerializer<Long>
-
createInstance
public Long createInstance()
- Specified by:
createInstancein classorg.apache.flink.api.common.typeutils.TypeSerializer<Long>
-
copy
public Long copy(Long from)
- Specified by:
copyin classorg.apache.flink.api.common.typeutils.TypeSerializer<Long>
-
copy
public Long copy(Long from, Long reuse)
- Specified by:
copyin classorg.apache.flink.api.common.typeutils.TypeSerializer<Long>
-
getLength
public int getLength()
- Specified by:
getLengthin classorg.apache.flink.api.common.typeutils.TypeSerializer<Long>
-
serialize
public void serialize(Long record, org.apache.flink.core.memory.DataOutputView target) throws IOException
- Specified by:
serializein classorg.apache.flink.api.common.typeutils.TypeSerializer<Long>- Throws:
IOException
-
deserialize
public Long deserialize(org.apache.flink.core.memory.DataInputView source) throws IOException
- Specified by:
deserializein classorg.apache.flink.api.common.typeutils.TypeSerializer<Long>- Throws:
IOException
-
deserialize
public Long deserialize(Long reuse, org.apache.flink.core.memory.DataInputView source) throws IOException
- Specified by:
deserializein classorg.apache.flink.api.common.typeutils.TypeSerializer<Long>- 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<Long>- Throws:
IOException
-
-