Search in sources :

Example 6 with ExecutionEnvironmentFactory

use of org.apache.flink.api.java.ExecutionEnvironmentFactory in project flink by apache.

the class TestEnvironment method setAsContext.

public void setAsContext() {
    ExecutionEnvironmentFactory factory = () -> {
        lastEnv = new TestEnvironment(miniCluster, getParallelism(), getConfig().isObjectReuseEnabled());
        return lastEnv;
    };
    initializeContextEnvironment(factory);
}
Also used : ExecutionEnvironmentFactory(org.apache.flink.api.java.ExecutionEnvironmentFactory)

Aggregations

ExecutionEnvironmentFactory (org.apache.flink.api.java.ExecutionEnvironmentFactory)6