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 |
|---|
TextOutputFormat.LineRecordWriter(DataOutputStream out) |
TextOutputFormat.LineRecordWriter(DataOutputStream out,
String keyValueSeparator) |
protected DataOutputStream out
public TextOutputFormat.LineRecordWriter(DataOutputStream out, String keyValueSeparator)
public TextOutputFormat.LineRecordWriter(DataOutputStream out)
public void write(K key, V value) throws IOException
RecordWriterwrite in interface RecordWriter<K,V>key - the key to write.value - the value to write.IOExceptionpublic void close(Reporter reporter) throws IOException
RecordWriterRecordWriter to future operations.close in interface RecordWriter<K,V>reporter - facility to report progress.IOExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.