Enum StateChangeOperation

java.lang.Object
java.lang.Enum<StateChangeOperation>
org.apache.flink.state.changelog.StateChangeOperation
All Implemented Interfaces:
Serializable, Comparable<StateChangeOperation>

@Internal public enum StateChangeOperation extends Enum<StateChangeOperation>
The operation applied to ChangelogState.
  • Enum Constant Details

    • CLEAR

      public static final StateChangeOperation CLEAR
      Scope: key + namespace.
    • SET

      public static final StateChangeOperation SET
      Scope: key + namespace.
    • SET_INTERNAL

      public static final StateChangeOperation SET_INTERNAL
      Scope: key + namespace.
    • ADD

      public static final StateChangeOperation ADD
      Scope: key + namespace.
    • MERGE_NS

      public static final StateChangeOperation MERGE_NS
      Scope: key + namespace, also affecting other (source) namespaces.
    • ADD_ELEMENT

      public static final StateChangeOperation ADD_ELEMENT
      Scope: key + namespace + element (e.g. user list append).
    • ADD_OR_UPDATE_ELEMENT

      public static final StateChangeOperation ADD_OR_UPDATE_ELEMENT
      Scope: key + namespace + element (e.g. user map key put).
    • REMOVE_ELEMENT

      public static final StateChangeOperation REMOVE_ELEMENT
      Scope: key + namespace + element (e.g. user map remove or iterator remove).
    • METADATA

      public static final StateChangeOperation METADATA
      State metadata (name, serializers, etc.).
  • Method Details

    • values

      public static StateChangeOperation[] 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 StateChangeOperation 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
    • byCode

      public static StateChangeOperation byCode(byte opCode)
    • getCode

      public byte getCode()