new ReduceShardTask<>(id, shard, outputs.size(), getReducerInputReader(inputs.get(shard)),
getCopyOfReducer(), outputs.get(shard), Long.MAX_VALUE);
tasks.add(task);
}
final Counters counters = new CountersImpl();
counters.addAll(mapCounters);
InProcessShardedJobRunner.runJob(tasks.build(), new ShardedJobController<
WorkerShardTask<KeyValue<K, Iterator<V>>, O, ReducerContext<O>>>() {
// Not really meant to be serialized, but avoid warning.
private static final long serialVersionUID = 575338448598450119L;