public static class FilterOutputFormat.FilterRecordWriter<K,V> extends RecordWriter<K,V>
FilterRecordWriter
is a convenience wrapper
class that extends the RecordWriter
.Modifier and Type | Field and Description |
---|---|
protected RecordWriter<K,V> |
rawWriter |
Constructor and Description |
---|
FilterOutputFormat.FilterRecordWriter() |
FilterOutputFormat.FilterRecordWriter(RecordWriter<K,V> rwriter) |
Modifier and Type | Method and Description |
---|---|
void |
close(TaskAttemptContext context)
Close this
RecordWriter to future operations. |
void |
write(K key,
V value)
Writes a key/value pair.
|
protected RecordWriter<K,V> rawWriter
public FilterOutputFormat.FilterRecordWriter()
public FilterOutputFormat.FilterRecordWriter(RecordWriter<K,V> rwriter)
public void write(K key, V value) throws java.io.IOException, java.lang.InterruptedException
RecordWriter
write
in class RecordWriter<K,V>
key
- the key to write.value
- the value to write.java.io.IOException
java.lang.InterruptedException
public void close(TaskAttemptContext context) throws java.io.IOException, java.lang.InterruptedException
RecordWriter
RecordWriter
to future operations.close
in class RecordWriter<K,V>
context
- the context of the taskjava.io.IOException
java.lang.InterruptedException
Copyright © 2009 The Apache Software Foundation