Package org.apache.flink.table.connector
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:
RowKind
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChangelogMode.BuilderBuilder for configuring and creating instances ofChangelogMode.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChangelogModeall()Shortcut for a changelog that can contain allRowKinds.booleancontains(org.apache.flink.types.RowKind kind)booleancontainsOnly(org.apache.flink.types.RowKind kind)booleanequals(Object o)Set<org.apache.flink.types.RowKind>getContainedKinds()inthashCode()static ChangelogModeinsertOnly()Shortcut for a simpleRowKind.INSERT-only changelog.booleankeyOnlyDeletes()static ChangelogMode.BuildernewBuilder()Builder for configuring and creating instances ofChangelogMode.StringtoString()static ChangelogModeupsert()Shortcut for an upsert changelog that describes idempotent updates on a key and thus does not containRowKind.UPDATE_BEFORErows.static ChangelogModeupsert(boolean keyOnlyDeletes)Shortcut for an upsert changelog that describes idempotent updates on a key and thus does not containRowKind.UPDATE_BEFORErows.
-
-
-
Method Detail
-
insertOnly
public static ChangelogMode insertOnly()
Shortcut for a simpleRowKind.INSERT-only changelog.
-
upsert
public static ChangelogMode upsert()
Shortcut for an upsert changelog that describes idempotent updates on a key and thus does not containRowKind.UPDATE_BEFORErows.
-
upsert
public static ChangelogMode upsert(boolean keyOnlyDeletes)
Shortcut for an upsert changelog that describes idempotent updates on a key and thus does not containRowKind.UPDATE_BEFORErows.- Parameters:
keyOnlyDeletes- Tells the system the DELETEs contain just the key.
-
all
public static ChangelogMode all()
Shortcut for a changelog that can contain allRowKinds.
-
newBuilder
public static ChangelogMode.Builder newBuilder()
Builder for configuring and creating instances ofChangelogMode.
-
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()
-
-