Class RowLevelUpdateSpec

java.lang.Object
org.apache.flink.table.planner.plan.abilities.sink.RowLevelUpdateSpec
All Implemented Interfaces:
SinkAbilitySpec

public class RowLevelUpdateSpec extends Object implements SinkAbilitySpec
A sub-class of SinkAbilitySpec that can not only serialize/deserialize the row-level update mode, columns & required physical column indices to/from JSON, but also can update existing data for SupportsRowLevelUpdate.
  • Field Details

  • Constructor Details

    • RowLevelUpdateSpec

      public RowLevelUpdateSpec(@Nonnull List<org.apache.flink.table.catalog.Column> updatedColumns, @Nonnull org.apache.flink.table.connector.sink.abilities.SupportsRowLevelUpdate.RowLevelUpdateMode rowLevelUpdateMode, @Nullable org.apache.flink.table.connector.RowLevelModificationScanContext scanContext, @Nonnull int[] requiredPhysicalColumnIndices)
  • Method Details

    • apply

      public void apply(org.apache.flink.table.connector.sink.DynamicTableSink tableSink)
      Description copied from interface: SinkAbilitySpec
      Apply the ability to the given DynamicTableSink.
      Specified by:
      apply in interface SinkAbilitySpec
    • getRowLevelUpdateMode

      @Nonnull public org.apache.flink.table.connector.sink.abilities.SupportsRowLevelUpdate.RowLevelUpdateMode getRowLevelUpdateMode()
    • getRequiredPhysicalColumnIndices

      public int[] getRequiredPhysicalColumnIndices()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object