KickJava   Java API By Example, From Geeks To Geeks.

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


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.DataOutput JavaDoc;
8
9 import net.nutch.io.Writable;
10
11 /** Writes key/value pairs to an output file. Implemented by {@link
12  * OutputFormat} implementations. */

13 public interface RecordWriter {
14   /** Writes a key/value pair.
15    *
16    * @param key the key to write
17    * @param value the value to write
18    *
19    * @see Writable#write(DataOutput)
20    */

21   public boolean next(Writable key, Writable value) throws IOException JavaDoc;
22 }
23
Popular Tags