@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.
|
NEVER
The operator will not be chained to the preceding or succeeding operators.
|
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.