/** * Creates a {@link CollectionEnvironment} that uses Java Collections underneath. This will execute in a * single thread in the current JVM. It is very fast but will fail if the data does not fit into * memory. parallelism will always be 1. This is useful during implementation and for debugging. * @return A Collection Environment */ @PublicEvolving public static CollectionEnvironment createCollectionsEnvironment(){ CollectionEnvironment ce = new CollectionEnvironment(); ce.setParallelism(1); return ce; }
@Override public JobExecutionResult execute(String jobName) throws Exception { JobExecutionResult result = super.execute(jobName); this.lastJobExecutionResult = result; return result; }
@Override public JobExecutionResult execute(String jobName) throws Exception { Plan p = createProgramPlan(jobName); // We need to reverse here. Object-Reuse enabled, means safe mode is disabled. CollectionExecutor exec = new CollectionExecutor(getConfig()); this.lastJobExecutionResult = exec.execute(p); return this.lastJobExecutionResult; }
this.flinkBatchEnv = ExecutionEnvironment.createLocalEnvironment(); } else if (masterUrl.equals("[collection]")) { this.flinkBatchEnv = new CollectionEnvironment(); } else if (masterUrl.equals("[auto]")) { this.flinkBatchEnv = ExecutionEnvironment.getExecutionEnvironment();
flinkBatchEnv = ExecutionEnvironment.createLocalEnvironment(); } else if (masterUrl.equals("[collection]")) { flinkBatchEnv = new CollectionEnvironment(); } else if (masterUrl.equals("[auto]")) { flinkBatchEnv = ExecutionEnvironment.getExecutionEnvironment();
/** * Creates a {@link CollectionEnvironment} that uses Java Collections underneath. This will execute in a * single thread in the current JVM. It is very fast but will fail if the data does not fit into * memory. parallelism will always be 1. This is useful during implementation and for debugging. * @return A Collection Environment */ @PublicEvolving public static CollectionEnvironment createCollectionsEnvironment(){ CollectionEnvironment ce = new CollectionEnvironment(); ce.setParallelism(1); return ce; }
flinkBatchEnv = ExecutionEnvironment.createLocalEnvironment(); } else if ("[collection]".equals(masterUrl)) { flinkBatchEnv = new CollectionEnvironment(); } else if ("[auto]".equals(masterUrl)) { flinkBatchEnv = ExecutionEnvironment.getExecutionEnvironment();
@Override public JobExecutionResult execute(String jobName) throws Exception { JobExecutionResult result = super.execute(jobName); this.lastJobExecutionResult = result; return result; }
@Override public JobSubmissionResult executeInternal(String jobName, boolean detached) throws Exception { Plan p = createProgramPlan(jobName); // We need to reverse here. Object-Reuse enabled, means safe mode is disabled. CollectionExecutor exec = new CollectionExecutor(getConfig()); this.lastJobExecutionResult = exec.execute(p); return this.lastJobExecutionResult; }
/** * Creates a {@link CollectionEnvironment} that uses Java Collections underneath. This will execute in a * single thread in the current JVM. It is very fast but will fail if the data does not fit into * memory. parallelism will always be 1. This is useful during implementation and for debugging. * @return A Collection Environment */ @PublicEvolving public static CollectionEnvironment createCollectionsEnvironment(){ CollectionEnvironment ce = new CollectionEnvironment(); ce.setParallelism(1); return ce; }
flinkBatchEnv = ExecutionEnvironment.createLocalEnvironment(flinkConfiguration); } else if ("[collection]".equals(masterUrl)) { flinkBatchEnv = new CollectionEnvironment(); } else if ("[auto]".equals(masterUrl)) { flinkBatchEnv = ExecutionEnvironment.getExecutionEnvironment();
@Override public JobExecutionResult execute(String jobName) throws Exception { JobExecutionResult result = super.execute(jobName); this.lastJobExecutionResult = result; return result; }
@Override public JobExecutionResult execute(String jobName) throws Exception { Plan p = createProgramPlan(jobName); // We need to reverse here. Object-Reuse enabled, means safe mode is disabled. CollectionExecutor exec = new CollectionExecutor(getConfig()); this.lastJobExecutionResult = exec.execute(p); return this.lastJobExecutionResult; }
/** * Creates a {@link CollectionEnvironment} that uses Java Collections underneath. This will execute in a * single thread in the current JVM. It is very fast but will fail if the data does not fit into * memory. parallelism will always be 1. This is useful during implementation and for debugging. * @return A Collection Environment */ @PublicEvolving public static CollectionEnvironment createCollectionsEnvironment(){ CollectionEnvironment ce = new CollectionEnvironment(); ce.setParallelism(1); return ce; }
@Override public JobExecutionResult execute(String jobName) throws Exception { JobExecutionResult result = super.execute(jobName); this.lastJobExecutionResult = result; return result; }
@Override public JobExecutionResult execute(String jobName) throws Exception { JobExecutionResult result = super.execute(jobName); this.lastJobExecutionResult = result; return result; }