@Override public R execute() throws Exception { env.execute(); return getResult(); }
@Override public ChecksumHashCode<T> run(DataSet<T> input) throws Exception { super.run(input); checksumHashCodeHelper = new ChecksumHashCodeHelper<>(); input .output(checksumHashCodeHelper) .name("ChecksumHashCode"); return this; }
@Override public Count<T> run(DataSet<T> input) throws Exception { super.run(input); countHelper = new CountHelper<>(); input .output(countHelper) .name("Count"); return this; }
@Override public Collect<T> run(DataSet<T> input) throws Exception { super.run(input); ExecutionEnvironment env = input.getExecutionEnvironment(); serializer = input.getType().createSerializer(env.getConfig()); collectHelper = new CollectHelper<>(serializer); input .output(collectHelper) .name("Collect"); return this; }
@Override public R execute(String jobName) throws Exception { Preconditions.checkNotNull(jobName); env.execute(jobName); return getResult(); } }