public class TextOutputFormat<K,V> extends FileOutputFormat<K,V>
OutputFormat
that writes plain text files.限定符和类型 | 类和说明 |
---|---|
protected static class |
TextOutputFormat.LineRecordWriter<K,V> |
FileOutputFormat.Counter
BASE_OUTPUT_NAME, PART
构造器和说明 |
---|
TextOutputFormat() |
限定符和类型 | 方法和说明 |
---|---|
RecordWriter<K,V> |
getRecordWriter(TaskAttemptContext job)
Get the
RecordWriter for the given task. |
checkOutputSpecs, getCompressOutput, getDefaultWorkFile, getOutputCommitter, getOutputCompressorClass, getOutputName, getOutputPath, getPathForWorkFile, getUniqueFile, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputName, setOutputPath
public RecordWriter<K,V> getRecordWriter(TaskAttemptContext job) throws IOException, InterruptedException
OutputFormat
RecordWriter
for the given task.getRecordWriter
在类中 FileOutputFormat<K,V>
job
- the information about the current task.RecordWriter
to write the output for the job.IOException
InterruptedException
Copyright © 2009 The Apache Software Foundation