org.apache.hadoop.mapred
Interface RecordWriter

All Known Implementing Classes:
TextOutputFormat.LineRecordWriter

public interface RecordWriter

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


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

Method Detail

write

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

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

Throws:
IOException


Copyright © 2006 The Apache Software Foundation