public class ExecutionEnvironmentImpl extends Object implements org.apache.flink.datastream.api.ExecutionEnvironment
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.
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addOperator(org.apache.flink.api.dag.Transformation<?> transformation) |
void |
execute(String jobName) |
<OUT> org.apache.flink.datastream.api.stream.NonKeyedPartitionStream<OUT> |
fromSource(org.apache.flink.api.connector.dsv2.Source<OUT> source,
String sourceName) |
org.apache.flink.streaming.api.environment.CheckpointConfig |
getCheckpointCfg() |
org.apache.flink.configuration.Configuration |
getConfiguration() |
org.apache.flink.api.common.ExecutionConfig |
getExecutionConfig() |
org.apache.flink.api.common.RuntimeExecutionMode |
getExecutionMode() |
int |
getParallelism() |
org.apache.flink.streaming.api.graph.StreamGraph |
getStreamGraph()
Get
StreamGraph and clear all transformations. |
List<org.apache.flink.api.dag.Transformation<?>> |
getTransformations() |
protected static void |
initializeContextEnvironment(ExecutionEnvironmentFactory ctx) |
static org.apache.flink.datastream.api.ExecutionEnvironment |
newInstance()
Create and return an instance of
ExecutionEnvironment. |
protected static void |
resetContextEnvironment() |
org.apache.flink.datastream.api.ExecutionEnvironment |
setExecutionMode(org.apache.flink.api.common.RuntimeExecutionMode runtimeMode) |
void |
setParallelism(int parallelism) |
public static org.apache.flink.datastream.api.ExecutionEnvironment newInstance()
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.
public void execute(String jobName) throws Exception
execute 在接口中 org.apache.flink.datastream.api.ExecutionEnvironmentExceptionpublic org.apache.flink.api.common.RuntimeExecutionMode getExecutionMode()
getExecutionMode 在接口中 org.apache.flink.datastream.api.ExecutionEnvironmentpublic org.apache.flink.datastream.api.ExecutionEnvironment setExecutionMode(org.apache.flink.api.common.RuntimeExecutionMode runtimeMode)
setExecutionMode 在接口中 org.apache.flink.datastream.api.ExecutionEnvironmentprotected static void initializeContextEnvironment(ExecutionEnvironmentFactory ctx)
protected static void resetContextEnvironment()
public <OUT> org.apache.flink.datastream.api.stream.NonKeyedPartitionStream<OUT> fromSource(org.apache.flink.api.connector.dsv2.Source<OUT> source,
String sourceName)
fromSource 在接口中 org.apache.flink.datastream.api.ExecutionEnvironmentpublic org.apache.flink.configuration.Configuration getConfiguration()
public org.apache.flink.api.common.ExecutionConfig getExecutionConfig()
public int getParallelism()
public List<org.apache.flink.api.dag.Transformation<?>> getTransformations()
public void setParallelism(int parallelism)
public org.apache.flink.streaming.api.environment.CheckpointConfig getCheckpointCfg()
public void addOperator(org.apache.flink.api.dag.Transformation<?> transformation)
public org.apache.flink.streaming.api.graph.StreamGraph getStreamGraph()
StreamGraph and clear all transformations.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.