@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.
| 枚举常量和说明 |
|---|
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.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static ChainingStrategy |
DEFAULT_CHAINING_STRATEGY |
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.