protected static class TextOutputFormat.LineRecordWriter<K,V> extends RecordWriter<K,V>
限定符和类型 | 字段和说明 |
---|---|
protected DataOutputStream |
out |
构造器和说明 |
---|
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
RecordWriter
write
在类中 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
在类中 RecordWriter<K,V>
context
- the context of the taskIOException
Copyright © 2009 The Apache Software Foundation