org.apache.hadoop.mapred.lib
Class NullOutputFormat

java.lang.Object
  extended by org.apache.hadoop.mapred.lib.NullOutputFormat
All Implemented Interfaces:
OutputFormat

public class NullOutputFormat
extends Object
implements OutputFormat

Consume all outputs and put them in /dev/null.


Constructor Summary
NullOutputFormat()
           
 
Method Summary
 void checkOutputSpecs(FileSystem ignored, JobConf job)
          Check whether the output specification for a job is appropriate.
 RecordWriter getRecordWriter(FileSystem ignored, JobConf job, String name, Progressable progress)
          Construct a RecordWriter with Progressable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullOutputFormat

public NullOutputFormat()
Method Detail

getRecordWriter

public RecordWriter getRecordWriter(FileSystem ignored,
                                    JobConf job,
                                    String name,
                                    Progressable progress)
Description copied from interface: OutputFormat
Construct a RecordWriter with Progressable.

Specified by:
getRecordWriter in interface OutputFormat
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

checkOutputSpecs

public void checkOutputSpecs(FileSystem ignored,
                             JobConf job)
Description copied from interface: OutputFormat
Check whether the output specification for a job is appropriate. Called when a job is submitted. Typically checks that it does not already exist, throwing an exception when it already exists, so that output is not overwritten.

Specified by:
checkOutputSpecs in interface OutputFormat
job - the job whose output will be written


Copyright © 2006 The Apache Software Foundation