Class ChangelogMode

java.lang.Object
org.apache.flink.table.connector.ChangelogMode

@PublicEvolving public final class ChangelogMode extends Object
The set of changes contained in a changelog.
See Also:
  • Method Details

    • insertOnly

      public static ChangelogMode insertOnly()
      Shortcut for a simple RowKind.INSERT-only changelog.
    • upsert

      public static ChangelogMode upsert()
      Shortcut for an upsert changelog that describes idempotent updates on a key and thus does not contain RowKind.UPDATE_BEFORE rows.
    • upsert

      public static ChangelogMode upsert(boolean keyOnlyDeletes)
      Shortcut for an upsert changelog that describes idempotent updates on a key and thus does not contain RowKind.UPDATE_BEFORE rows.
      Parameters:
      keyOnlyDeletes - Tells the system the DELETEs contain just the key.
    • all

      public static ChangelogMode all()
      Shortcut for a changelog that can contain all RowKinds.
    • newBuilder

      public static ChangelogMode.Builder newBuilder()
      Builder for configuring and creating instances of ChangelogMode.
    • getContainedKinds

      public Set<RowKind> getContainedKinds()
    • contains

      public boolean contains(RowKind kind)
    • containsOnly

      public boolean containsOnly(RowKind kind)
    • keyOnlyDeletes

      public boolean keyOnlyDeletes()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object