org.apache.hadoop.mapred.lib
Class FilterOutputFormat.FilterRecordWriter<K,V>

java.lang.Object
  extended by org.apache.hadoop.mapred.lib.FilterOutputFormat.FilterRecordWriter<K,V>
All Implemented Interfaces:
RecordWriter<K,V>
Enclosing class:
FilterOutputFormat<K,V>

public static class FilterOutputFormat.FilterRecordWriter<K,V>
extends Object
implements RecordWriter<K,V>

FilterRecordWriter is a convenience wrapper class that implements RecordWriter.


Field Summary
protected  RecordWriter<K,V> rawWriter
           
 
Constructor Summary
FilterOutputFormat.FilterRecordWriter()
           
FilterOutputFormat.FilterRecordWriter(RecordWriter<K,V> rawWriter)
           
 
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
 

Field Detail

rawWriter

protected RecordWriter<K,V> rawWriter
Constructor Detail

FilterOutputFormat.FilterRecordWriter

public FilterOutputFormat.FilterRecordWriter()
                                      throws IOException
Throws:
IOException

FilterOutputFormat.FilterRecordWriter

public FilterOutputFormat.FilterRecordWriter(RecordWriter<K,V> rawWriter)
                                      throws IOException
Throws:
IOException
Method Detail

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,V>
Parameters:
reporter - facility to report progress.
Throws:
IOException

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,V>
Parameters:
key - the key to write.
value - the value to write.
Throws:
IOException


Copyright © 2012 Apache Software Foundation. All Rights Reserved.