Package org.apache.flink.datastream.api
Interface ExecutionEnvironment
@Experimental
public interface ExecutionEnvironment
This is the context in which a program is executed.
The environment provides methods to create a DataStream and control the job execution.
-
Method Summary
Modifier and TypeMethodDescriptionvoidExecute and submit the job attached to this environment.fromSource(org.apache.flink.api.connector.dsv2.Source<OUT> source, String sourceName) org.apache.flink.api.common.RuntimeExecutionModeGet the execution mode of this environment.static ExecutionEnvironmentGet the execution environment instance.setExecutionMode(org.apache.flink.api.common.RuntimeExecutionMode runtimeMode) Set the execution mode for this environment.
-
Method Details
-
getInstance
Get the execution environment instance.- Returns:
- A
ExecutionEnvironmentinstance. - Throws:
ReflectiveOperationException
-
execute
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
Set the execution mode for this environment. -
fromSource
<OUT> NonKeyedPartitionStream.ProcessConfigurableAndNonKeyedPartitionStream<OUT> fromSource(org.apache.flink.api.connector.dsv2.Source<OUT> source, String sourceName)
-