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 Details

    • newInstance

      public static org.apache.flink.datastream.api.ExecutionEnvironment newInstance()
      Create and return an instance of ExecutionEnvironment.

      IMPORTANT: The method is only expected to be called by ExecutionEnvironment via reflection, so we must ensure that the package path, class name and the signature of this method does not change.

    • execute

      public void execute(String jobName) throws Exception
      Specified by:
      execute in interface org.apache.flink.datastream.api.ExecutionEnvironment
      Throws:
      Exception
    • getExecutionMode

      public org.apache.flink.api.common.RuntimeExecutionMode getExecutionMode()
      Specified by:
      getExecutionMode in interface org.apache.flink.datastream.api.ExecutionEnvironment
    • setExecutionMode

      public org.apache.flink.datastream.api.ExecutionEnvironment setExecutionMode(org.apache.flink.api.common.RuntimeExecutionMode runtimeMode)
      Specified by:
      setExecutionMode in interface org.apache.flink.datastream.api.ExecutionEnvironment
    • initializeContextEnvironment

      protected static void initializeContextEnvironment(ExecutionEnvironmentFactory ctx)
    • 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:
      fromSource in interface org.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

      public List<org.apache.flink.api.dag.Transformation<?>> 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()
      Get StreamGraph and clear all transformations.