RecordWriter (Hadoop 0.20.1+169.88 API)
Date: 2010-05-20

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.hadoop.mapred
Interface RecordWriter<K,V>

All Known Implementing Classes:
  DBOutputFormat.DBRecordWriter, TextOutputFormat.LineRecordWriter

    public interface RecordWriter<K,V>

`RecordWriter` writes the output <key, value> pairs to an output file.

`RecordWriter` implementations write the job outputs to the `FileSystem`.

See Also:
  `OutputFormat`

Method Summary
`void` | `close(Reporter reporter)` Close this `RecordWriter` to future operations.
`void` | `write(K key, V value)` Writes a key/value pair.

Method Detail

### write

    void write(K key,
               V value)
               throws IOException

  Writes a key/value pair.

  Parameters:
    `key` - the key to write.
    `value` - the value to write.
  Throws:
    `IOException`

### close

    void close(Reporter reporter)
               throws IOException

  Close this `RecordWriter` to future operations.

  Parameters:
    `reporter` - facility to report progress.
  Throws:
    `IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2009 The Apache Software Foundation