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