Package org.apache.flink.api.common
Enum RuntimeExecutionMode
- java.lang.Object
-
- java.lang.Enum<RuntimeExecutionMode>
-
- org.apache.flink.api.common.RuntimeExecutionMode
-
- All Implemented Interfaces:
Serializable
,Comparable<RuntimeExecutionMode>
@PublicEvolving public enum RuntimeExecutionMode extends Enum<RuntimeExecutionMode>
Runtime execution mode of DataStream programs. Among other things, this controls task scheduling, network shuffle behavior, and time semantics. Some operations will also change their record emission behaviour based on the configured execution mode.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RuntimeExecutionMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static RuntimeExecutionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STREAMING
public static final RuntimeExecutionMode STREAMING
The Pipeline will be executed with Streaming Semantics. All tasks will be deployed before execution starts, checkpoints will be enabled, and both processing and event time will be fully supported.
-
BATCH
public static final RuntimeExecutionMode BATCH
The Pipeline will be executed with Batch Semantics. Tasks will be scheduled gradually based on the scheduling region they belong, shuffles between regions will be blocking, watermarks are assumed to be "perfect" i.e. no late data, and processing time is assumed to not advance during execution.
-
AUTOMATIC
public static final RuntimeExecutionMode AUTOMATIC
-
-
Method Detail
-
values
public static RuntimeExecutionMode[] 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 (RuntimeExecutionMode c : RuntimeExecutionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RuntimeExecutionMode 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
-
-