protected static class TextOutputFormat.LineRecordWriter<K,V> extends 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) |
| 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 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 class RecordWriter<K,V>key - the key to write.value - the value to write.IOExceptionpublic void close(TaskAttemptContext context) throws IOException
RecordWriterRecordWriter to future operations.close in class RecordWriter<K,V>context - the context of the taskIOExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.