1 /* Copyright (c) 2005 The Nutch Organization. All rights reserved. */2 /* Use subject to the conditions in http://www.nutch.org/LICENSE.txt. */3 4 package net.nutch.mapReduce;5 6 import java.io.IOException ;7 import java.io.DataInput ;8 9 import net.nutch.io.Writable;10 import net.nutch.io.WritableComparable;11 12 13 /** Passed to {@link Mapper} and {@link Reducer} implementations to collect14 * output data. */15 public interface OutputCollector {16 /** Adds a key/value pair to the output.17 *18 * @param key the key to add19 * @param value to value to add20 */21 void collect(WritableComparable key, Writable value) throws IOException ;22 }23