@InterfaceAudience.Public @InterfaceStability.Stable public interface OutputFormat<K,V>
OutputFormatdescribes the output-specification for a Map-Reduce job.
The Map-Reduce framework relies on the
OutputFormat of the
|Modifier and Type||Method and Description|
Check for validity of the output-specification for the job.
RecordWriter<K,V> getRecordWriter(FileSystem ignored, JobConf job, String name, Progressable progress) throws IOException
RecordWriterfor the given job.
void checkOutputSpecs(FileSystem ignored, JobConf job) throws IOException
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.
job- job configuration.
IOException- when output should not be attempted
Copyright © 2018 Apache Software Foundation. All rights reserved.