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 IOException, InterruptedException
RecordWriterwrite in class RecordWriter<K,V>key - the key to write.value - the value to write.IOExceptionInterruptedExceptionpublic void close(TaskAttemptContext context) throws IOException, InterruptedException
RecordWriterRecordWriter to future operations.close in class RecordWriter<K,V>context - the context of the taskIOExceptionInterruptedExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.