Enum StateDescriptor.Type
- java.lang.Object
-
- java.lang.Enum<StateDescriptor.Type>
-
- org.apache.flink.api.common.state.StateDescriptor.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<StateDescriptor.Type>
- Enclosing class:
- StateDescriptor<S extends State,T>
public static enum StateDescriptor.Type extends Enum<StateDescriptor.Type>
An enumeration of the types of supported states. Used to identify the state type when writing and restoring checkpoints and savepoints.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StateDescriptor.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static StateDescriptor.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
@Deprecated public static final StateDescriptor.Type UNKNOWN
Deprecated.Enum for migrating from old checkpoints/savepoint versions.
-
VALUE
public static final StateDescriptor.Type VALUE
-
LIST
public static final StateDescriptor.Type LIST
-
REDUCING
public static final StateDescriptor.Type REDUCING
-
FOLDING
public static final StateDescriptor.Type FOLDING
-
AGGREGATING
public static final StateDescriptor.Type AGGREGATING
-
MAP
public static final StateDescriptor.Type MAP
-
-
Method Detail
-
values
public static StateDescriptor.Type[] 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 (StateDescriptor.Type c : StateDescriptor.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StateDescriptor.Type 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
-
-