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
IOExceptionpublic FilterRecordWriter(RecordWriter<K,V> rawWriter) throws IOException
IOExceptionpublic void close(Reporter reporter) throws IOException
RecordWriterRecordWriter to future operations.close in interface RecordWriter<K,V>reporter - facility to report progress.IOExceptionpublic void write(K key, V value) throws IOException
RecordWriterwrite in interface RecordWriter<K,V>key - the key to write.value - the value to write.IOExceptionCopyright © 2008–2022 Apache Software Foundation. All rights reserved.