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.DataOutput ;8 9 import net.nutch.io.Writable;10 11 /** Writes key/value pairs to an output file. Implemented by {@link12 * OutputFormat} implementations. */13 public interface RecordWriter {14 /** Writes a key/value pair.15 *16 * @param key the key to write17 * @param value the value to write18 *19 * @see Writable#write(DataOutput)20 */ 21 public boolean next(Writable key, Writable value) throws IOException ;22 }23