Package org.apache.flink.optimizer.dag
Enum TempMode
- java.lang.Object
-
- java.lang.Enum<TempMode>
-
- org.apache.flink.optimizer.dag.TempMode
-
- All Implemented Interfaces:
Serializable,Comparable<TempMode>
public enum TempMode extends Enum<TempMode>
Enumeration to indicate the mode of temporarily materializing the data that flows across a connection. Introducing such an artificial dam is sometimes necessary to avoid that a certain data flows deadlock themselves, or as a cache to replay an intermediate result.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CACHEDCACHING_PIPELINE_BREAKERNONEPIPELINE_BREAKER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbreaksPipeline()booleanisCached()TempModemakeCached()TempModemakeNonCached()TempModemakePipelineBreaker()static TempModevalueOf(String name)Returns the enum constant of this type with the specified name.static TempMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static TempMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TempMode c : TempMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TempMode valueOf(String name)
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
-
isCached
public boolean isCached()
-
breaksPipeline
public boolean breaksPipeline()
-
makePipelineBreaker
public TempMode makePipelineBreaker()
-
makeCached
public TempMode makeCached()
-
makeNonCached
public TempMode makeNonCached()
-
-