public class TestEnvironment
extends org.apache.flink.api.java.ExecutionEnvironment
| Constructor and Description |
|---|
TestEnvironment(org.apache.flink.test.util.ForkableFlinkMiniCluster executor,
int parallelism) |
TestEnvironment(org.apache.flink.test.util.ForkableFlinkMiniCluster executor,
int parallelism,
boolean isObjectReuseEnabled) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.common.JobExecutionResult |
execute(String jobName) |
String |
getExecutionPlan() |
org.apache.flink.api.common.JobExecutionResult |
getLastJobExecutionResult() |
void |
setAsContext() |
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, fromElements, fromParallelCollection, fromParallelCollection, generateSequence, getConfig, getExecutionEnvironment, getId, getIdString, 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 TestEnvironment(org.apache.flink.test.util.ForkableFlinkMiniCluster executor,
int parallelism)
public TestEnvironment(org.apache.flink.test.util.ForkableFlinkMiniCluster executor,
int parallelism,
boolean isObjectReuseEnabled)
public org.apache.flink.api.common.JobExecutionResult getLastJobExecutionResult()
getLastJobExecutionResult in class org.apache.flink.api.java.ExecutionEnvironmentpublic void startNewSession()
throws Exception
startNewSession in class org.apache.flink.api.java.ExecutionEnvironmentExceptionpublic 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 setAsContext()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.