@InterfaceAudience.Public @InterfaceStability.Stable public class LazyOutputFormat<K,V> extends FilterOutputFormat<K,V>
baseOut
コンストラクタと説明 |
---|
LazyOutputFormat() |
修飾子とタイプ | メソッドと説明 |
---|---|
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. |
static void |
setOutputFormatClass(JobConf job,
Class<? extends OutputFormat> theClass)
Set the underlying output format for LazyOutputFormat.
|
public LazyOutputFormat()
public static void setOutputFormatClass(JobConf job, Class<? extends OutputFormat> theClass)
job
- the JobConf
to modifytheClass
- the underlying classpublic RecordWriter<K,V> getRecordWriter(FileSystem ignored, JobConf job, String name, Progressable progress) throws IOException
OutputFormat
RecordWriter
for the given job.getRecordWriter
インタフェース内 OutputFormat<K,V>
getRecordWriter
クラス内 FilterOutputFormat<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.IOException
public void checkOutputSpecs(FileSystem ignored, JobConf job) throws IOException
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>
checkOutputSpecs
クラス内 FilterOutputFormat<K,V>
job
- job configuration.IOException
- when output should not be attemptedCopyright © 2016 Apache Software Foundation. All rights reserved.