org.apache.hadoop.mapred
Class TextOutputFormat.LineRecordWriter<K extends WritableComparable,V extends Writable>

java.lang.Object
  extended by org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter<K,V>
All Implemented Interfaces:
RecordWriter<K,V>
Enclosing class:
TextOutputFormat<K extends WritableComparable,V extends Writable>

protected static class TextOutputFormat.LineRecordWriter<K extends WritableComparable,V extends Writable>
extends Object
implements RecordWriter<K,V>


Constructor Summary
TextOutputFormat.LineRecordWriter(DataOutputStream out)
           
 
Method Summary
 void close(Reporter reporter)
          Close this RecordWriter to future operations.
 void write(K key, V 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(K key,
                  V value)
           throws IOException
Description copied from interface: RecordWriter
Writes a key/value pair.

Specified by:
write in interface RecordWriter<K extends WritableComparable,V extends Writable>
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 RecordWriter to future operations.

Specified by:
close in interface RecordWriter<K extends WritableComparable,V extends Writable>
Parameters:
reporter - facility to report progress.
Throws:
IOException


Copyright © 2006 The Apache Software Foundation