Class UpsertKafkaDynamicTableFactory.DecodingFormatWrapper

  • All Implemented Interfaces:
    org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>>, org.apache.flink.table.connector.format.Format
    Enclosing class:
    UpsertKafkaDynamicTableFactory

    protected static class UpsertKafkaDynamicTableFactory.DecodingFormatWrapper
    extends Object
    implements org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>>
    It is used to wrap the decoding format and expose the desired changelog mode. It's only works for insert-only format.
    • Constructor Summary

      Constructors 
      Constructor Description
      DecodingFormatWrapper​(org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>> innerDecodingFormat)  
    • Constructor Detail

      • DecodingFormatWrapper

        public DecodingFormatWrapper​(org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>> innerDecodingFormat)
    • Method Detail

      • createRuntimeDecoder

        public org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData> createRuntimeDecoder​(org.apache.flink.table.connector.source.DynamicTableSource.Context context,
                                                                                                                                         org.apache.flink.table.types.DataType producedDataType)
        Specified by:
        createRuntimeDecoder in interface org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>>
      • getChangelogMode

        public org.apache.flink.table.connector.ChangelogMode getChangelogMode()
        Specified by:
        getChangelogMode in interface org.apache.flink.table.connector.format.Format
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object