KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > nutch > mapReduce > OutputCollector


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 JavaDoc;
7 import java.io.DataInput JavaDoc;
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 collect
14  * output data. */

15 public interface OutputCollector {
16   /** Adds a key/value pair to the output.
17    *
18    * @param key the key to add
19    * @param value to value to add
20    */

21   void collect(WritableComparable key, Writable value) throws IOException JavaDoc;
22 }
23
Popular Tags