public class NullOutputFormat<K,V> extends Object implements OutputFormat<K,V>
构造器和说明 |
---|
NullOutputFormat() |
限定符和类型 | 方法和说明 |
---|---|
void |
checkOutputSpecs(FileSystem ignored,
JobConf job)
Check for validity of the output-specification for the job.
|
RecordWriter<K,V> |
getRecordWriter(FileSystem ignored,
JobConf job,
String name,
Progressable progress)
Get the
RecordWriter for the given job. |
public RecordWriter<K,V> getRecordWriter(FileSystem ignored, JobConf job, String name, Progressable progress)
OutputFormat
RecordWriter
for the given job.getRecordWriter
在接口中 OutputFormat<K,V>
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.RecordWriter
to write the output for the job.public void checkOutputSpecs(FileSystem ignored, JobConf job)
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
在接口中 OutputFormat<K,V>
job
- job configuration.Copyright © 2009 The Apache Software Foundation