Class ModifyKindSet

java.lang.Object
org.apache.flink.table.planner.plan.trait.ModifyKindSet

public class ModifyKindSet extends Object
The set of modify operations contained in a changelog.
See Also:
  • Field Details

    • INSERT_ONLY

      public static final ModifyKindSet INSERT_ONLY
      Insert-only modify kind set.
    • ALL_CHANGES

      public static final ModifyKindSet ALL_CHANGES
      A modify kind set contains all change operations.
  • Method Details

    • getContainedKinds

      public Set<ModifyKind> getContainedKinds()
    • contains

      public boolean contains(ModifyKind kind)
    • containsOnly

      public boolean containsOnly(ModifyKind kind)
    • isInsertOnly

      public boolean isInsertOnly()
    • size

      public int size()
    • isEmpty

      public boolean isEmpty()
    • minus

      public ModifyKindSet minus(ModifyKindSet other)
      Returns a new set of ModifyKind which is this set minus the other set, i.e. this.kinds - that.kinds. For example: [I,U,D] minus [I] = [U,D] [I,U] minus [U,D] = [I] [I,U,D] minus [I,U,D] = []
    • intersect

      public ModifyKindSet intersect(ModifyKindSet other)
      Returns a new ModifyKindSet with all kinds set in both this set and in another set.
    • union

      public ModifyKindSet union(ModifyKindSet other)
      Returns a new ModifyKindSet with the union of the other ModifyKindSet.
    • toChangelogMode

      public org.apache.flink.table.connector.ChangelogMode toChangelogMode()
      Returns the default ChangelogMode from this ModifyKindSet.
    • 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
    • union

      public static ModifyKindSet union(ModifyKindSet... modifyKindSets)
      Returns the union of a number of ModifyKindSets.
    • newBuilder

      public static ModifyKindSet.Builder newBuilder()
      Builder for configuring and creating instances of ModifyKindSet.