@PublicEvolving public enum ChainingStrategy extends Enum<ChainingStrategy>
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 and Description |
---|
ALWAYS
Operators will be eagerly chained whenever possible.
|
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 in
HEAD , but it will
additionally try to chain source inputs if possible. |
NEVER
The operator will not be chained to the preceding or succeeding operators.
|
Modifier and Type | Field and Description |
---|---|
static ChainingStrategy |
DEFAULT_CHAINING_STRATEGY |
Modifier and Type | Method and Description |
---|---|
static ChainingStrategy |
valueOf(String name)
Returns 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.
|
public static final ChainingStrategy ALWAYS
To optimize performance, it is generally a good practice to allow maximal chaining and increase operator parallelism.
public static final ChainingStrategy NEVER
public static final ChainingStrategy HEAD
public static final ChainingStrategy HEAD_WITH_SOURCES
HEAD
, 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.public static final ChainingStrategy DEFAULT_CHAINING_STRATEGY
public static ChainingStrategy[] values()
for (ChainingStrategy c : ChainingStrategy.values()) System.out.println(c);
public static ChainingStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.