|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapreduce.OutputFormat<K,V> org.apache.hadoop.mapreduce.lib.output.NullOutputFormat<K,V>
public class NullOutputFormat<K,V>
Consume all outputs and put them in /dev/null.
Constructor Summary | |
---|---|
NullOutputFormat()
|
Method Summary | |
---|---|
void |
checkOutputSpecs(JobContext context)
Check for validity of the output-specification for the job. |
OutputCommitter |
getOutputCommitter(TaskAttemptContext context)
Get the output committer for this output format. |
RecordWriter<K,V> |
getRecordWriter(TaskAttemptContext context)
Get the RecordWriter for the given task. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NullOutputFormat()
Method Detail |
---|
public RecordWriter<K,V> getRecordWriter(TaskAttemptContext context)
OutputFormat
RecordWriter
for the given task.
getRecordWriter
in class OutputFormat<K,V>
context
- the information about the current task.
RecordWriter
to write the output for the job.public void checkOutputSpecs(JobContext context)
OutputFormat
This is to validate the output specification for the job when it is 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.
checkOutputSpecs
in class OutputFormat<K,V>
context
- information about the jobpublic OutputCommitter getOutputCommitter(TaskAttemptContext context)
OutputFormat
getOutputCommitter
in class OutputFormat<K,V>
context
- the task context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |