|Constructor and Description|
|Modifier and Type||Method and Description|
Check for validity of the output-specification for the job.
Set the underlying output format for LazyOutputFormat.
public static void setOutputFormatClass(JobConf job, Class<? extends OutputFormat> theClass)
theClass- the underlying class
public RecordWriter<K,V> getRecordWriter(FileSystem ignored, JobConf job, String name, Progressable progress) throws IOException
RecordWriterfor the given job.
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.
RecordWriterto write the output for the job.
public 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.
Copyright © 2016 Apache Software Foundation. All rights reserved.