Package org.apache.flink.datastream.impl
Class ExecutionEnvironmentImpl
java.lang.Object
org.apache.flink.datastream.impl.ExecutionEnvironmentImpl
- All Implemented Interfaces:
org.apache.flink.datastream.api.ExecutionEnvironment
- Direct Known Subclasses:
ExecutionContextEnvironment
public class ExecutionEnvironmentImpl
extends Object
implements org.apache.flink.datastream.api.ExecutionEnvironment
The implementation of
ExecutionEnvironment.
IMPORTANT: Even though this is not part of public API, ExecutionEnvironment will get
this class instance through reflection, so we must ensure that the package path, class name and
the signature of newInstance() does not change.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddOperator(org.apache.flink.api.dag.Transformation<?> transformation) void<OUT> org.apache.flink.datastream.api.stream.NonKeyedPartitionStream.ProcessConfigurableAndNonKeyedPartitionStream<OUT>fromSource(org.apache.flink.api.connector.dsv2.Source<OUT> source, String sourceName) org.apache.flink.streaming.api.environment.CheckpointConfigorg.apache.flink.configuration.Configurationorg.apache.flink.api.common.ExecutionConfigorg.apache.flink.api.common.RuntimeExecutionModeintorg.apache.flink.streaming.api.graph.StreamGraphGetStreamGraphand clear all transformations.List<org.apache.flink.api.dag.Transformation<?>>protected static voidstatic org.apache.flink.datastream.api.ExecutionEnvironmentCreate and return an instance ofExecutionEnvironment.protected static voidorg.apache.flink.datastream.api.ExecutionEnvironmentsetExecutionMode(org.apache.flink.api.common.RuntimeExecutionMode runtimeMode) voidsetParallelism(int parallelism)
-
Method Details
-
newInstance
public static org.apache.flink.datastream.api.ExecutionEnvironment newInstance()Create and return an instance ofExecutionEnvironment.IMPORTANT: The method is only expected to be called by
ExecutionEnvironmentvia reflection, so we must ensure that the package path, class name and the signature of this method does not change. -
execute
- Specified by:
executein interfaceorg.apache.flink.datastream.api.ExecutionEnvironment- Throws:
Exception
-
getExecutionMode
public org.apache.flink.api.common.RuntimeExecutionMode getExecutionMode()- Specified by:
getExecutionModein interfaceorg.apache.flink.datastream.api.ExecutionEnvironment
-
setExecutionMode
public org.apache.flink.datastream.api.ExecutionEnvironment setExecutionMode(org.apache.flink.api.common.RuntimeExecutionMode runtimeMode) - Specified by:
setExecutionModein interfaceorg.apache.flink.datastream.api.ExecutionEnvironment
-
initializeContextEnvironment
-
resetContextEnvironment
protected static void resetContextEnvironment() -
fromSource
public <OUT> org.apache.flink.datastream.api.stream.NonKeyedPartitionStream.ProcessConfigurableAndNonKeyedPartitionStream<OUT> fromSource(org.apache.flink.api.connector.dsv2.Source<OUT> source, String sourceName) - Specified by:
fromSourcein interfaceorg.apache.flink.datastream.api.ExecutionEnvironment
-
getConfiguration
public org.apache.flink.configuration.Configuration getConfiguration() -
getExecutionConfig
public org.apache.flink.api.common.ExecutionConfig getExecutionConfig() -
getParallelism
public int getParallelism() -
getTransformations
-
setParallelism
public void setParallelism(int parallelism) -
getCheckpointCfg
public org.apache.flink.streaming.api.environment.CheckpointConfig getCheckpointCfg() -
addOperator
public void addOperator(org.apache.flink.api.dag.Transformation<?> transformation) -
getStreamGraph
public org.apache.flink.streaming.api.graph.StreamGraph getStreamGraph()GetStreamGraphand clear all transformations.
-