@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 void close() throws IOException { addAccumulator(COUNT, new LongCounter(count)); } }
@Override public Long getResult() { return countHelper.getAccumulator(env, COUNT); }
@Override public void close() throws IOException { addAccumulator(COUNT, new LongCounter(count)); } }
@Override public Long getResult() { return countHelper.getAccumulator(env, COUNT); }
@Override public Long getResult() { return countHelper.getAccumulator(env, COUNT); }
@Override public void close() throws IOException { addAccumulator(COUNT, new LongCounter(count)); } }
@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 Count<T> run(DataSet<T> input) throws Exception { super.run(input); countHelper = new CountHelper<>(); input .output(countHelper) .name("Count"); return this; }
@Override public void close() throws IOException { addAccumulator(COUNT, new LongCounter(count)); } }
@Override public Long getResult() { return countHelper.getAccumulator(env, COUNT); }
@Override public Count<T> run(DataSet<T> input) throws Exception { super.run(input); countHelper = new CountHelper<>(); input .output(countHelper) .name("Count"); return this; }