protected static class TextOutputFormat.LineRecordWriter<K,V> extends Object implements 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(Reporter reporter) throws IOException
RecordWriter
RecordWriter
to future operations.close
在接口中 RecordWriter<K,V>
reporter
- facility to report progress.IOException
Copyright © 2009 The Apache Software Foundation