Package org.apache.flink.datastream.api
Interface ExecutionEnvironment
-
@Experimental public interface ExecutionEnvironmentThis is the context in which a program is executed.The environment provides methods to create a DataStream and control the job execution.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute(String jobName)Execute and submit the job attached to this environment.<OUT> NonKeyedPartitionStream.ProcessConfigurableAndNonKeyedPartitionStream<OUT>fromSource(org.apache.flink.api.connector.dsv2.Source<OUT> source, String sourceName)org.apache.flink.api.common.RuntimeExecutionModegetExecutionMode()Get the execution mode of this environment.static ExecutionEnvironmentgetInstance()Get the execution environment instance.ExecutionEnvironmentsetExecutionMode(org.apache.flink.api.common.RuntimeExecutionMode runtimeMode)Set the execution mode for this environment.
-
-
-
Method Detail
-
getInstance
static ExecutionEnvironment getInstance() throws ReflectiveOperationException
Get the execution environment instance.- Returns:
- A
ExecutionEnvironmentinstance. - Throws:
ReflectiveOperationException
-
execute
void execute(String jobName) throws Exception
Execute and submit the job attached to this environment.- Throws:
Exception
-
getExecutionMode
org.apache.flink.api.common.RuntimeExecutionMode getExecutionMode()
Get the execution mode of this environment.
-
setExecutionMode
ExecutionEnvironment setExecutionMode(org.apache.flink.api.common.RuntimeExecutionMode runtimeMode)
Set the execution mode for this environment.
-
fromSource
<OUT> NonKeyedPartitionStream.ProcessConfigurableAndNonKeyedPartitionStream<OUT> fromSource(org.apache.flink.api.connector.dsv2.Source<OUT> source, String sourceName)
-
-