public class OptimizerPlanEnvironment
extends org.apache.flink.api.java.ExecutionEnvironment
| Modifier and Type | Class and Description |
|---|---|
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.
|
| Constructor and Description |
|---|
OptimizerPlanEnvironment(org.apache.flink.optimizer.Optimizer compiler) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.common.JobExecutionResult |
execute(String jobName) |
String |
getExecutionPlan() |
org.apache.flink.optimizer.plan.FlinkPlan |
getOptimizedPlan(PackagedProgram prog) |
void |
setPlan(org.apache.flink.optimizer.plan.FlinkPlan plan) |
void |
startNewSession() |
addDefaultKryoSerializer, addDefaultKryoSerializer, areExplicitEnvironmentsAllowed, createCollectionsEnvironment, createHadoopInput, createHadoopInput, createInput, createInput, createLocalEnvironment, createLocalEnvironment, createLocalEnvironment, createProgramPlan, createProgramPlan, createProgramPlan, createRemoteEnvironment, createRemoteEnvironment, createRemoteEnvironment, execute, fromCollection, fromCollection, fromCollection, fromCollection, fromElements, fromParallelCollection, fromParallelCollection, generateSequence, getConfig, getExecutionEnvironment, getId, getIdString, getLastJobExecutionResult, getNumberOfExecutionRetries, getParallelism, getRestartStrategy, getSessionTimeout, initializeContextEnvironment, readCsvFile, readFile, readFileOfPrimitives, readFileOfPrimitives, readHadoopFile, readHadoopFile, readHadoopFile, readHadoopFile, readSequenceFile, readTextFile, readTextFile, readTextFileWithValue, readTextFileWithValue, registerCachedFile, registerCachedFile, registerCachedFilesWithPlan, registerType, registerTypeWithKryoSerializer, registerTypeWithKryoSerializer, resetContextEnvironment, setDefaultLocalParallelism, setNumberOfExecutionRetries, setParallelism, setRestartStrategy, setSessionTimeoutpublic OptimizerPlanEnvironment(org.apache.flink.optimizer.Optimizer compiler)
public org.apache.flink.api.common.JobExecutionResult execute(String jobName) throws Exception
execute in class org.apache.flink.api.java.ExecutionEnvironmentExceptionpublic String getExecutionPlan() throws Exception
getExecutionPlan in class org.apache.flink.api.java.ExecutionEnvironmentExceptionpublic void startNewSession()
startNewSession in class org.apache.flink.api.java.ExecutionEnvironmentpublic org.apache.flink.optimizer.plan.FlinkPlan getOptimizedPlan(PackagedProgram prog) throws ProgramInvocationException
ProgramInvocationExceptionpublic void setPlan(org.apache.flink.optimizer.plan.FlinkPlan plan)
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.