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:
ModifyKind
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModifyKindSet.Builder
Builder for configuring and creating instances ofModifyKindSet
.
-
Field Summary
Fields Modifier and Type Field Description static ModifyKindSet
ALL_CHANGES
A modify kind set contains all change operations.static ModifyKindSet
INSERT_ONLY
Insert-only modify kind set.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(ModifyKind kind)
boolean
containsOnly(ModifyKind kind)
boolean
equals(Object o)
Set<ModifyKind>
getContainedKinds()
int
hashCode()
ModifyKindSet
intersect(ModifyKindSet other)
Returns a new ModifyKindSet with all kinds set in both this set and in another set.boolean
isEmpty()
boolean
isInsertOnly()
ModifyKindSet
minus(ModifyKindSet other)
Returns a new set of ModifyKind which is this set minus the other set, i.e.static ModifyKindSet.Builder
newBuilder()
Builder for configuring and creating instances ofModifyKindSet
.int
size()
ChangelogMode
toChangelogMode()
Returns the defaultChangelogMode
from thisModifyKindSet
.String
toString()
ModifyKindSet
union(ModifyKindSet other)
Returns a new ModifyKindSet with the union of the other ModifyKindSet.static ModifyKindSet
union(ModifyKindSet... modifyKindSets)
Returns the union of a number of ModifyKindSets.
-
-
-
Field Detail
-
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 Detail
-
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 ChangelogMode toChangelogMode()
Returns the defaultChangelogMode
from thisModifyKindSet
.
-
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 ofModifyKindSet
.
-
-