org.apache.hadoop.mapred
Class TextOutputFormat<K extends WritableComparable,V extends Writable>

java.lang.Object
  extended by org.apache.hadoop.mapred.OutputFormatBase<K,V>
      extended by org.apache.hadoop.mapred.TextOutputFormat<K,V>
All Implemented Interfaces:
OutputFormat<K,V>
Direct Known Subclasses:
StreamOutputFormat

public class TextOutputFormat<K extends WritableComparable,V extends Writable>
extends OutputFormatBase<K,V>

An OutputFormat that writes plain text files.


Nested Class Summary
protected static class TextOutputFormat.LineRecordWriter<K extends WritableComparable,V extends Writable>
           
 
Constructor Summary
TextOutputFormat()
           
 
Method Summary
 RecordWriter<K,V> getRecordWriter(FileSystem ignored, JobConf job, String name, Progressable progress)
          Get the RecordWriter for the given job.
 
Methods inherited from class org.apache.hadoop.mapred.OutputFormatBase
checkOutputSpecs, getCompressOutput, getOutputCompressorClass, setCompressOutput, setOutputCompressorClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextOutputFormat

public TextOutputFormat()
Method Detail

getRecordWriter

public RecordWriter<K,V> getRecordWriter(FileSystem ignored,
                                         JobConf job,
                                         String name,
                                         Progressable progress)
                                                                              throws IOException
Description copied from interface: OutputFormat
Get the RecordWriter for the given job.

Specified by:
getRecordWriter in interface OutputFormat<K extends WritableComparable,V extends Writable>
Specified by:
getRecordWriter in class OutputFormatBase<K extends WritableComparable,V extends Writable>
job - configuration for the job whose output is being written.
name - the unique name for this part of the output.
progress - mechanism for reporting progress while writing to file.
Returns:
a RecordWriter to write the output for the job.
Throws:
IOException


Copyright © 2006 The Apache Software Foundation