Enum OnConflictMode

java.lang.Object
java.lang.Enum<OnConflictMode>
io.confluent.flink.plugin.OnConflictMode
All Implemented Interfaces:
Serializable, Comparable<OnConflictMode>, java.lang.constant.Constable

public enum OnConflictMode extends Enum<OnConflictMode>
Behavior when updating a statement fails.
  • Enum Constant Details

    • FAIL

      public static final OnConflictMode FAIL
      Propagate the error and do not change existing statements. This is the default.
    • REPLACE

      public static final OnConflictMode REPLACE
      Delete the conflicting statement, and retry the submission once. Requires an application name to be configured so that statement names are scoped.
  • Method Details

    • values

      public static OnConflictMode[] 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

      public static OnConflictMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<OnConflictMode>
    • parse

      public static OnConflictMode parse(String value)
      Parses a string value to the corresponding OnConflictMode.
      Parameters:
      value - the mode string (e.g., "fail", "replace")
      Returns:
      the matching OnConflictMode
      Throws:
      ConfluentFlinkException - if the value doesn't match any mode