Enum ElementOrder
- java.lang.Object
-
- java.lang.Enum<ElementOrder>
-
- org.apache.flink.streaming.runtime.operators.asyncprocessing.ElementOrder
-
- All Implemented Interfaces:
Serializable,Comparable<ElementOrder>
@Internal public enum ElementOrder extends Enum<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 forFIRST_STATE_ORDERfrom average users.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIRST_STATE_ORDERTheprocessElementcall 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.RECORD_ORDERTreat 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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ElementOrdervalueOf(String name)Returns 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 Detail
-
RECORD_ORDER
public static final ElementOrder 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
public static final ElementOrder 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 Detail
-
values
public static ElementOrder[] 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 (ElementOrder c : ElementOrder.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ElementOrder 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
-
-