Enum ElementOrder
java.lang.Object
java.lang.Enum<ElementOrder>
org.apache.flink.streaming.runtime.operators.asyncprocessing.ElementOrder
- All Implemented Interfaces:
Serializable,Comparable<ElementOrder>
This enum defines the element order of being processed. Only the elements with the same key
should be considered here. We should keep this internal and away from API module for now, until
we could see the concrete need for
FIRST_STATE_ORDER from average users.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTheprocessElementcall will be invoked on record arrival, but may be blocked at the first state accessing if there is a preceding same-key record under processing.Treat the record processing as a whole, meaning that anyprocessElementcall for the elements with same key should follow the order of record arrival AND no parallel run is allowed. -
Method Summary
Modifier and TypeMethodDescriptionstatic ElementOrderReturns the enum constant of this type with the specified name.static ElementOrder[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RECORD_ORDER
Treat the record processing as a whole, meaning that anyprocessElementcall for the elements with same key should follow the order of record arrival AND no parallel run is allowed. -
FIRST_STATE_ORDER
TheprocessElementcall will be invoked on record arrival, but may be blocked at the first state accessing if there is a preceding same-key record under processing.
-
-
Method Details
-
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
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
-