org.apache.nutch.mapReduce
Interface RecordWriter


public interface RecordWriter

Writes key/value pairs to an output file. Implemented by OutputFormat implementations.


Method Summary
 void close()
          Close this to future operations.
 void write(WritableComparable key, Writable value)
          Writes a key/value pair.
 

Method Detail

write

public void write(WritableComparable key,
                  Writable value)
           throws IOException
Writes a key/value pair.

Parameters:
key - the key to write
value - the value to write
Throws:
IOException
See Also:
Writable.write(DataOutput)

close

public void close()
           throws IOException
Close this to future operations.

Throws:
IOException


Copyright © 2006 The Apache Software Foundation