org.apache.hadoop.mapred
Class TextOutputFormat

java.lang.Object
  extended by org.apache.hadoop.mapred.OutputFormatBase
      extended by org.apache.hadoop.mapred.TextOutputFormat
All Implemented Interfaces:
OutputFormat

public class TextOutputFormat
extends OutputFormatBase

An OutputFormat that writes plain text files.


Constructor Summary
TextOutputFormat()
           
 
Method Summary
 RecordWriter getRecordWriter(FileSystem fs, JobConf job, String name, Progressable progress)
          Construct a RecordWriter with Progressable.
 
Methods inherited from class org.apache.hadoop.mapred.OutputFormatBase
checkOutputSpecs
 
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 getRecordWriter(FileSystem fs,
                                    JobConf job,
                                    String name,
                                    Progressable progress)
                             throws IOException
Description copied from interface: OutputFormat
Construct a RecordWriter with Progressable.

Specified by:
getRecordWriter in interface OutputFormat
Specified by:
getRecordWriter in class OutputFormatBase
Parameters:
fs - the file system to write to
job - 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
Throws:
IOException


Copyright © 2006 The Apache Software Foundation