org.apache.nutch.mapReduce
Interface OutputFormat

All Known Implementing Classes:
SequenceFileOutputFormat, TextOutputFormat

public interface OutputFormat

An output data format. Output files are stored in a NutchFileSystem.


Method Summary
 String getName()
          The name of this output format.
 RecordWriter getRecordWriter(NutchFileSystem fs, JobConf job, String name)
          Construct a RecordWriter.
 

Method Detail

getName

public String getName()
The name of this output format.

See Also:
OutputFormats

getRecordWriter

public RecordWriter getRecordWriter(NutchFileSystem fs,
                                    JobConf job,
                                    String name)
                             throws IOException
Construct a RecordWriter.

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
Returns:
a RecordWriter
Throws:
IOException


Copyright © 2006 The Apache Software Foundation