protected Iterable<Object> results(int index) { return aggregators.get(index).results(); } }
protected Iterable<Object> results(int index) { return aggregators.get(index).results(); } }
@Override public void process(Pair<K, Iterable<V>> input, Emitter<Pair<K, V>> emitter) { aggregator.reset(); for (V v : input.second()) { aggregator.update(v); } for (V v : aggregator.results()) { emitter.emit(Pair.of(input.first(), v)); } } }
@Override public void process(Pair<K, Iterable<V>> input, Emitter<Pair<K, V>> emitter) { aggregator.reset(); for (V v : input.second()) { aggregator.update(v); } for (V v : aggregator.results()) { emitter.emit(Pair.of(input.first(), v)); } } }