Class ModifyKindSet
java.lang.Object
org.apache.flink.table.planner.plan.trait.ModifyKindSet
The set of modify operations contained in a changelog.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for configuring and creating instances ofModifyKindSet. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ModifyKindSetA modify kind set contains all change operations.static final ModifyKindSetInsert-only modify kind set. -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(ModifyKind kind) booleancontainsOnly(ModifyKind kind) booleaninthashCode()intersect(ModifyKindSet other) Returns a new ModifyKindSet with all kinds set in both this set and in another set.booleanisEmpty()booleanminus(ModifyKindSet other) Returns a new set of ModifyKind which is this set minus the other set, i.e.static ModifyKindSet.BuilderBuilder for configuring and creating instances ofModifyKindSet.intsize()org.apache.flink.table.connector.ChangelogModeReturns the defaultChangelogModefrom thisModifyKindSet.toString()union(ModifyKindSet other) Returns a new ModifyKindSet with the union of the other ModifyKindSet.static ModifyKindSetunion(ModifyKindSet... modifyKindSets) Returns the union of a number of ModifyKindSets.
-
Field Details
-
INSERT_ONLY
Insert-only modify kind set. -
ALL_CHANGES
A modify kind set contains all change operations.
-
-
Method Details
-
getContainedKinds
-
contains
-
containsOnly
-
isInsertOnly
public boolean isInsertOnly() -
size
public int size() -
isEmpty
public boolean isEmpty() -
minus
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
Returns a new ModifyKindSet with all kinds set in both this set and in another set. -
union
Returns a new ModifyKindSet with the union of the other ModifyKindSet. -
toChangelogMode
public org.apache.flink.table.connector.ChangelogMode toChangelogMode()Returns the defaultChangelogModefrom thisModifyKindSet. -
equals
-
hashCode
public int hashCode() -
toString
-
union
Returns the union of a number of ModifyKindSets. -
newBuilder
Builder for configuring and creating instances ofModifyKindSet.
-