Class UpsertKafkaDynamicTableFactory.DecodingFormatWrapper

java.lang.Object
org.apache.flink.streaming.connectors.kafka.table.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)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    boolean
     
    org.apache.flink.table.connector.ChangelogMode
     
    int
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.flink.table.connector.format.DecodingFormat

    applyReadableMetadata, listReadableMetadata
  • Constructor Details

    • 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 Details

    • 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
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object