Package org.apache.flink.table.api
Enum InsertConflictStrategy.ConflictBehavior
java.lang.Object
java.lang.Enum<InsertConflictStrategy.ConflictBehavior>
org.apache.flink.table.api.InsertConflictStrategy.ConflictBehavior
- All Implemented Interfaces:
Serializable,Comparable<InsertConflictStrategy.ConflictBehavior>,java.lang.constant.Constable
- Enclosing class:
- InsertConflictStrategy
@PublicEvolving
public static enum InsertConflictStrategy.ConflictBehavior
extends Enum<InsertConflictStrategy.ConflictBehavior>
Defines the basic conflict resolution behaviors.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMaintain the full history of changes for each primary key to support rollback on retraction.Throw an exception when multiple distinct records arrive for the same primary key after watermark compaction.Keep the first record that arrives for a given primary key, discard subsequent conflicts. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ERROR
Throw an exception when multiple distinct records arrive for the same primary key after watermark compaction. -
NOTHING
Keep the first record that arrives for a given primary key, discard subsequent conflicts. -
DEDUPLICATE
Maintain the full history of changes for each primary key to support rollback on retraction. This is the current default behavior.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-