public class CollectionTestEnvironment
extends org.apache.flink.api.java.CollectionEnvironment
CollectionEnvironment to be used in tests. The predominant feature of this class is
that it allows setting it as a context environment, causing it to be returned by ExecutionEnvironment.getExecutionEnvironment(). This also allows retrieving the JobExecutionResult outside the actual program.| Constructor and Description |
|---|
CollectionTestEnvironment() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.common.JobExecutionResult |
execute(String jobName) |
org.apache.flink.api.common.JobExecutionResult |
getLastJobExecutionResult() |
protected void |
setAsContext() |
protected static void |
unsetAsContext() |
addDefaultKryoSerializer, addDefaultKryoSerializer, areExplicitEnvironmentsAllowed, clearJobListeners, configure, createCollectionsEnvironment, createInput, createInput, createLocalEnvironment, createLocalEnvironment, createLocalEnvironment, createLocalEnvironmentWithWebUI, createProgramPlan, createProgramPlan, createProgramPlan, createRemoteEnvironment, createRemoteEnvironment, createRemoteEnvironment, execute, executeAsync, executeAsync, fromCollection, fromCollection, fromCollection, fromCollection, fromElements, fromElements, fromParallelCollection, fromParallelCollection, generateSequence, getConfig, getConfiguration, getDefaultLocalParallelism, getExecutionEnvironment, getExecutionPlan, getExecutorServiceLoader, getJobListeners, getNumberOfExecutionRetries, getRestartStrategy, getUserCodeClassLoader, initializeContextEnvironment, readCsvFile, readFile, readFileOfPrimitives, readFileOfPrimitives, readTextFile, readTextFile, readTextFileWithValue, readTextFileWithValue, registerCachedFile, registerCachedFile, registerJobListener, registerType, registerTypeWithKryoSerializer, registerTypeWithKryoSerializer, resetContextEnvironment, setDefaultLocalParallelism, setNumberOfExecutionRetries, setParallelism, setRestartStrategypublic org.apache.flink.api.common.JobExecutionResult getLastJobExecutionResult()
getLastJobExecutionResult in class org.apache.flink.api.java.ExecutionEnvironmentpublic org.apache.flink.api.common.JobExecutionResult execute(String jobName) throws Exception
execute in class org.apache.flink.api.java.CollectionEnvironmentExceptionprotected void setAsContext()
protected static void unsetAsContext()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.