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