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
RecordWriter
write
in class RecordWriter<K,V>
key
- the key to write.value
- the value to write.IOException
InterruptedException
public void close(TaskAttemptContext context) throws IOException, InterruptedException
RecordWriter
RecordWriter
to future operations.close
in class RecordWriter<K,V>
context
- the context of the taskIOException
InterruptedException
Copyright © 2013 Apache Software Foundation. All Rights Reserved.