Enum ChainingStrategy
- All Implemented Interfaces:
Serializable,Comparable<ChainingStrategy>
Defines the chaining scheme for the operator. When an operator is chained to the predecessor, it
means that they run in the same thread. They become one operator consisting of multiple steps.
The default value used by the StreamOperator is HEAD, which means that the operator
is not chained to its predecessor. Most operators override this with ALWAYS, meaning
they will be chained to predecessors whenever possible.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOperators will be eagerly chained whenever possible.The operator will not be chained to the predecessor, but successors may chain to this operator.This operator will run at the head of a chain (similar as inHEAD, but it will additionally try to chain source inputs if possible.The operator will not be chained to the preceding or succeeding operators. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ChainingStrategyReturns the enum constant of this type with the specified name.static ChainingStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
Operators will be eagerly chained whenever possible.To optimize performance, it is generally a good practice to allow maximal chaining and increase operator parallelism.
-
NEVER
The operator will not be chained to the preceding or succeeding operators. -
HEAD
The operator will not be chained to the predecessor, but successors may chain to this operator. -
HEAD_WITH_SOURCES
This operator will run at the head of a chain (similar as inHEAD, but it will additionally try to chain source inputs if possible. This allows multi-input operators to be chained with multiple sources into one task.
-
-
Field Details
-
DEFAULT_CHAINING_STRATEGY
-
-
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
-