protected static class TextOutputFormat.LineRecordWriter<K,V> extends RecordWriter<K,V>
| Modifier and Type | Field and Description |
|---|---|
protected java.io.DataOutputStream |
out |
| Constructor and Description |
|---|
TextOutputFormat.LineRecordWriter(java.io.DataOutputStream out) |
TextOutputFormat.LineRecordWriter(java.io.DataOutputStream out,
java.lang.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.
|
public TextOutputFormat.LineRecordWriter(java.io.DataOutputStream out,
java.lang.String keyValueSeparator)
public TextOutputFormat.LineRecordWriter(java.io.DataOutputStream out)
public void write(K key, V value) throws java.io.IOException
RecordWriterwrite in class RecordWriter<K,V>key - the key to write.value - the value to write.java.io.IOExceptionpublic void close(TaskAttemptContext context) throws java.io.IOException
RecordWriterRecordWriter to future operations.close in class RecordWriter<K,V>context - the context of the taskjava.io.IOExceptionCopyright © 2009 The Apache Software Foundation