Enum SequencedMultiSetState.StateChangeType
- java.lang.Object
-
- java.lang.Enum<SequencedMultiSetState.StateChangeType>
-
- org.apache.flink.table.runtime.sequencedmultisetstate.SequencedMultiSetState.StateChangeType
-
- All Implemented Interfaces:
Serializable,Comparable<SequencedMultiSetState.StateChangeType>
- Enclosing interface:
- SequencedMultiSetState<T>
public static enum SequencedMultiSetState.StateChangeType extends Enum<SequencedMultiSetState.StateChangeType>
Removal Result Type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDITIONAn element was added or appended to the state.REMOVAL_ALLAll elements were removed.REMOVAL_LAST_ADDEDThe most recently added element was removed.REMOVAL_NOT_FOUNDNothing was removed (e.g. as a result of TTL or not matching key), the result will not contain any elements.REMOVAL_OTHERAn element was removed, it was not the most recently added, there are more elements.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract <T> voidvalidate(long sizeBefore, long sizeAfter, T payload)static SequencedMultiSetState.StateChangeTypevalueOf(String name)Returns the enum constant of this type with the specified name.static SequencedMultiSetState.StateChangeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADDITION
public static final SequencedMultiSetState.StateChangeType ADDITION
An element was added or appended to the state. The result will not contain any elements.
-
REMOVAL_NOT_FOUND
public static final SequencedMultiSetState.StateChangeType REMOVAL_NOT_FOUND
Nothing was removed (e.g. as a result of TTL or not matching key), the result will not contain any elements.
-
REMOVAL_ALL
public static final SequencedMultiSetState.StateChangeType REMOVAL_ALL
All elements were removed. The result will contain the last removed element.
-
REMOVAL_LAST_ADDED
public static final SequencedMultiSetState.StateChangeType REMOVAL_LAST_ADDED
The most recently added element was removed. The result will contain the element added before it.
-
REMOVAL_OTHER
public static final SequencedMultiSetState.StateChangeType REMOVAL_OTHER
An element was removed, it was not the most recently added, there are more elements. The result will not contain any elements
-
-
Method Detail
-
values
public static SequencedMultiSetState.StateChangeType[] 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 (SequencedMultiSetState.StateChangeType c : SequencedMultiSetState.StateChangeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SequencedMultiSetState.StateChangeType 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
-
validate
public abstract <T> void validate(long sizeBefore, long sizeAfter, T payload)
-
-