public static class FilterOutputFormat.FilterRecordWriter<K,V> extends Object implements RecordWriter<K,V>
FilterRecordWriter
is a convenience wrapper
class that implements RecordWriter
.Modifier and Type | Field and Description |
---|---|
protected RecordWriter<K,V> |
rawWriter |
Constructor and Description |
---|
FilterRecordWriter() |
FilterRecordWriter(RecordWriter<K,V> rawWriter) |
Modifier and Type | Method and Description |
---|---|
void |
close(Reporter reporter)
Close this
RecordWriter to future operations. |
void |
write(K key,
V value)
Writes a key/value pair.
|
protected RecordWriter<K,V> rawWriter
public FilterRecordWriter() throws IOException
IOException
public FilterRecordWriter(RecordWriter<K,V> rawWriter) throws IOException
IOException
public void close(Reporter reporter) throws IOException
RecordWriter
RecordWriter
to future operations.close
in interface RecordWriter<K,V>
reporter
- facility to report progress.IOException
public void write(K key, V value) throws IOException
RecordWriter
write
in interface RecordWriter<K,V>
key
- the key to write.value
- the value to write.IOException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.