Package org.apache.flink.state.changelog
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 toChangelogState
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD
Scope: key + namespace.ADD_ELEMENT
Scope: key + namespace + element (e.g. user list append).ADD_OR_UPDATE_ELEMENT
Scope: key + namespace + element (e.g. user map key put).CLEAR
Scope: key + namespace.MERGE_NS
Scope: key + namespace, also affecting other (source) namespaces.METADATA
State metadata (name, serializers, etc.).REMOVE_ELEMENT
Scope: key + namespace + element (e.g. user map remove or iterator remove).SET
Scope: key + namespace.SET_INTERNAL
Scope: key + namespace.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StateChangeOperation
byCode(byte opCode)
byte
getCode()
static StateChangeOperation
valueOf(String name)
Returns the enum constant of this type with the specified name.static StateChangeOperation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static StateChangeOperation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StateChangeOperation c : StateChangeOperation.values()) System.out.println(c);
- 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 nameNullPointerException
- if the argument is null
-
byCode
public static StateChangeOperation byCode(byte opCode)
-
getCode
public byte getCode()
-
-