Class DataChangeEventSerializer
- java.lang.Object
-
- org.apache.flink.api.common.typeutils.TypeSerializer<T>
-
- org.apache.flink.cdc.runtime.serializer.TypeSerializerSingleton<DataChangeEvent>
-
- org.apache.flink.cdc.runtime.serializer.event.DataChangeEventSerializer
-
- All Implemented Interfaces:
Serializable
public class DataChangeEventSerializer extends TypeSerializerSingleton<DataChangeEvent>
ATypeSerializerforDataChangeEvent.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDataChangeEventSerializer.DataChangeEventSerializerSnapshotTypeSerializerSnapshotforDataChangeEventSerializer.
-
Field Summary
Fields Modifier and Type Field Description static DataChangeEventSerializerINSTANCESharable instance of the TableIdSerializer.
-
Constructor Summary
Constructors Constructor Description DataChangeEventSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataChangeEventcopy(DataChangeEvent from)DataChangeEventcopy(DataChangeEvent from, DataChangeEvent reuse)voidcopy(org.apache.flink.core.memory.DataInputView source, org.apache.flink.core.memory.DataOutputView target)DataChangeEventcreateInstance()DataChangeEventdeserialize(DataChangeEvent reuse, org.apache.flink.core.memory.DataInputView source)DataChangeEventdeserialize(org.apache.flink.core.memory.DataInputView source)intgetLength()booleanisImmutableType()voidserialize(DataChangeEvent event, org.apache.flink.core.memory.DataOutputView target)org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<DataChangeEvent>snapshotConfiguration()-
Methods inherited from class org.apache.flink.cdc.runtime.serializer.TypeSerializerSingleton
duplicate, equals, hashCode
-
-
-
-
Field Detail
-
INSTANCE
public static final DataChangeEventSerializer INSTANCE
Sharable instance of the TableIdSerializer.
-
-
Method Detail
-
createInstance
public DataChangeEvent createInstance()
- Specified by:
createInstancein classorg.apache.flink.api.common.typeutils.TypeSerializer<DataChangeEvent>
-
serialize
public void serialize(DataChangeEvent event, org.apache.flink.core.memory.DataOutputView target) throws IOException
- Specified by:
serializein classorg.apache.flink.api.common.typeutils.TypeSerializer<DataChangeEvent>- Throws:
IOException
-
deserialize
public DataChangeEvent deserialize(org.apache.flink.core.memory.DataInputView source) throws IOException
- Specified by:
deserializein classorg.apache.flink.api.common.typeutils.TypeSerializer<DataChangeEvent>- Throws:
IOException
-
deserialize
public DataChangeEvent deserialize(DataChangeEvent reuse, org.apache.flink.core.memory.DataInputView source) throws IOException
- Specified by:
deserializein classorg.apache.flink.api.common.typeutils.TypeSerializer<DataChangeEvent>- Throws:
IOException
-
copy
public DataChangeEvent copy(DataChangeEvent from)
- Specified by:
copyin classorg.apache.flink.api.common.typeutils.TypeSerializer<DataChangeEvent>
-
copy
public DataChangeEvent copy(DataChangeEvent from, DataChangeEvent reuse)
- Specified by:
copyin classorg.apache.flink.api.common.typeutils.TypeSerializer<DataChangeEvent>
-
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<DataChangeEvent>- Throws:
IOException
-
isImmutableType
public boolean isImmutableType()
- Specified by:
isImmutableTypein classorg.apache.flink.api.common.typeutils.TypeSerializer<DataChangeEvent>
-
getLength
public int getLength()
- Specified by:
getLengthin classorg.apache.flink.api.common.typeutils.TypeSerializer<DataChangeEvent>
-
snapshotConfiguration
public org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<DataChangeEvent> snapshotConfiguration()
- Specified by:
snapshotConfigurationin classorg.apache.flink.api.common.typeutils.TypeSerializer<DataChangeEvent>
-
-