protected static class TextOutputFormat.LineRecordWriter<K,V> extends Object implements RecordWriter<K,V>
Modifier and Type | Field and Description |
---|---|
protected DataOutputStream |
out |
Constructor and Description |
---|
LineRecordWriter(DataOutputStream out) |
LineRecordWriter(DataOutputStream out,
String keyValueSeparator) |
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 DataOutputStream out
public LineRecordWriter(DataOutputStream out, String keyValueSeparator)
public LineRecordWriter(DataOutputStream out)
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
public void close(Reporter reporter) throws IOException
RecordWriter
RecordWriter
to future operations.close
in interface RecordWriter<K,V>
reporter
- facility to report progress.IOException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.