Class ChangelogMode


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

      • 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.
      • getContainedKinds

        public Set<org.apache.flink.types.RowKind> getContainedKinds()
      • contains

        public boolean contains​(org.apache.flink.types.RowKind kind)
      • containsOnly

        public boolean containsOnly​(org.apache.flink.types.RowKind kind)
      • keyOnlyDeletes

        public boolean keyOnlyDeletes()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object