Class RowDataTiKVChangeEventDeserializationSchema
- java.lang.Object
-
- org.apache.flink.cdc.connectors.tidb.table.RowDataTiKVEventDeserializationSchemaBase
-
- org.apache.flink.cdc.connectors.tidb.table.RowDataTiKVChangeEventDeserializationSchema
-
- All Implemented Interfaces:
Serializable,org.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.table.data.RowData>,TiKVChangeEventDeserializationSchema<org.apache.flink.table.data.RowData>
public class RowDataTiKVChangeEventDeserializationSchema extends RowDataTiKVEventDeserializationSchemaBase implements TiKVChangeEventDeserializationSchema<org.apache.flink.table.data.RowData>
Deserialization schema from TiKV Change Event to Flink Table/SQL internal data structureRowData.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.flink.cdc.connectors.tidb.table.RowDataTiKVEventDeserializationSchemaBase
physicalConverter, tableInfo
-
-
Constructor Summary
Constructors Constructor Description RowDataTiKVChangeEventDeserializationSchema(org.tikv.common.TiConfiguration tiConf, String database, String tableName, org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> resultTypeInfo, TiKVMetadataConverter[] metadataConverters, org.apache.flink.table.types.logical.RowType physicalDataType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeserialize(org.tikv.kvproto.Cdcpb.Event.Row row, org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> out)Deserialize the TiDB record.org.apache.flink.api.common.typeinfo.TypeInformationgetProducedType()-
Methods inherited from class org.apache.flink.cdc.connectors.tidb.table.RowDataTiKVEventDeserializationSchemaBase
createConverter, createNotNullConverter, dealUnsignedColumnValue, emit, fetchTableInfo
-
-
-
-
Constructor Detail
-
RowDataTiKVChangeEventDeserializationSchema
public RowDataTiKVChangeEventDeserializationSchema(org.tikv.common.TiConfiguration tiConf, String database, String tableName, org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> resultTypeInfo, TiKVMetadataConverter[] metadataConverters, org.apache.flink.table.types.logical.RowType physicalDataType)
-
-
Method Detail
-
deserialize
public void deserialize(org.tikv.kvproto.Cdcpb.Event.Row row, org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> out) throws ExceptionDescription copied from interface:TiKVChangeEventDeserializationSchemaDeserialize the TiDB record.- Specified by:
deserializein interfaceTiKVChangeEventDeserializationSchema<org.apache.flink.table.data.RowData>- Throws:
Exception
-
getProducedType
public org.apache.flink.api.common.typeinfo.TypeInformation getProducedType()
- Specified by:
getProducedTypein interfaceorg.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.table.data.RowData>
-
-