Class UpsertKafkaDynamicTableFactory.EncodingFormatWrapper

java.lang.Object
org.apache.flink.streaming.connectors.kafka.table.UpsertKafkaDynamicTableFactory.EncodingFormatWrapper
All Implemented Interfaces:
org.apache.flink.table.connector.format.EncodingFormat<org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData>>, org.apache.flink.table.connector.format.Format
Enclosing class:
UpsertKafkaDynamicTableFactory

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

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.flink.table.connector.ChangelogMode
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    EncodingFormatWrapper(org.apache.flink.table.connector.format.EncodingFormat<org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData>> innerEncodingFormat)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData>
    createRuntimeEncoder(org.apache.flink.table.connector.sink.DynamicTableSink.Context context, org.apache.flink.table.types.DataType consumedDataType)
     
    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.EncodingFormat

    applyWritableMetadata, listWritableMetadata
  • Field Details

    • SINK_CHANGELOG_MODE

      public static final org.apache.flink.table.connector.ChangelogMode SINK_CHANGELOG_MODE
  • Constructor Details

    • EncodingFormatWrapper

      public EncodingFormatWrapper(org.apache.flink.table.connector.format.EncodingFormat<org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData>> innerEncodingFormat)
  • Method Details

    • createRuntimeEncoder

      public org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData> createRuntimeEncoder(org.apache.flink.table.connector.sink.DynamicTableSink.Context context, org.apache.flink.table.types.DataType consumedDataType)
      Specified by:
      createRuntimeEncoder in interface org.apache.flink.table.connector.format.EncodingFormat<org.apache.flink.api.common.serialization.SerializationSchema<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