public class OptimizerPlanEnvironment
extends org.apache.flink.api.java.ExecutionEnvironment
ExecutionEnvironment that never executes a job but only extracts the Pipeline.| 限定符和类型 | 类和说明 |
|---|---|
static class |
OptimizerPlanEnvironment.ProgramAbortException
A special exception used to abort programs when the caller is only interested in the
program plan, rather than in the full execution.
|
| 构造器和说明 |
|---|
OptimizerPlanEnvironment(org.apache.flink.configuration.Configuration configuration) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.flink.core.execution.JobClient |
executeAsync(String jobName) |
org.apache.flink.api.dag.Pipeline |
getPipeline(PackagedProgram prog,
boolean suppressOutput)
Retrieves the JobGraph from a PackagedProgram.
|
void |
setPipeline(org.apache.flink.api.dag.Pipeline pipeline) |
addDefaultKryoSerializer, addDefaultKryoSerializer, areExplicitEnvironmentsAllowed, clearJobListeners, configure, createCollectionsEnvironment, createInput, createInput, createLocalEnvironment, createLocalEnvironment, createLocalEnvironment, createLocalEnvironmentWithWebUI, createProgramPlan, createProgramPlan, createProgramPlan, createRemoteEnvironment, createRemoteEnvironment, createRemoteEnvironment, execute, execute, executeAsync, fromCollection, fromCollection, fromCollection, fromCollection, fromElements, fromElements, fromParallelCollection, fromParallelCollection, generateSequence, getConfig, getConfiguration, getDefaultLocalParallelism, getExecutionEnvironment, getExecutionPlan, getExecutorServiceLoader, getLastJobExecutionResult, getNumberOfExecutionRetries, getParallelism, getRestartStrategy, getUserCodeClassLoader, initializeContextEnvironment, readCsvFile, readFile, readFileOfPrimitives, readFileOfPrimitives, readTextFile, readTextFile, readTextFileWithValue, readTextFileWithValue, registerCachedFile, registerCachedFile, registerCachedFilesWithPlan, registerJobListener, registerType, registerTypeWithKryoSerializer, registerTypeWithKryoSerializer, resetContextEnvironment, setDefaultLocalParallelism, setNumberOfExecutionRetries, setParallelism, setRestartStrategypublic OptimizerPlanEnvironment(org.apache.flink.configuration.Configuration configuration)
public org.apache.flink.core.execution.JobClient executeAsync(String jobName) throws Exception
executeAsync 在类中 org.apache.flink.api.java.ExecutionEnvironmentExceptionpublic org.apache.flink.api.dag.Pipeline getPipeline(PackagedProgram prog, boolean suppressOutput) throws ProgramInvocationException
prog - The program to runsuppressOutput - Whether to suppress stdout/stderr. Output is always printed on errors.ProgramInvocationException - in case of errors.public void setPipeline(org.apache.flink.api.dag.Pipeline pipeline)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.