@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.
|
NEVER
The operator will not be chained to the preceding or succeeding operators.
|
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 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–2018 The Apache Software Foundation. All rights reserved.