org.apache.hadoop.mapred
Class TextOutputFormat.LineRecordWriter

java.lang.Object
  extended by org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter
All Implemented Interfaces:
RecordWriter
Enclosing class:
TextOutputFormat

protected static class TextOutputFormat.LineRecordWriter
extends Object
implements RecordWriter


Constructor Summary
TextOutputFormat.LineRecordWriter(DataOutputStream out)
           
 
Method Summary
 void close(Reporter reporter)
          Close this to future operations.
 void write(WritableComparable key, Writable value)
          Writes a key/value pair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextOutputFormat.LineRecordWriter

public TextOutputFormat.LineRecordWriter(DataOutputStream out)
Method Detail

write

public void write(WritableComparable key,
                  Writable value)
           throws IOException
Description copied from interface: RecordWriter
Writes a key/value pair.

Specified by:
write in interface RecordWriter
Parameters:
key - the key to write
value - the value to write
Throws:
IOException
See Also:
Writable.write(DataOutput)

close

public void close(Reporter reporter)
           throws IOException
Description copied from interface: RecordWriter
Close this to future operations.

Specified by:
close in interface RecordWriter
Throws:
IOException


Copyright © 2006 The Apache Software Foundation