@InterfaceAudience.Public @InterfaceStability.Stable public class LazyOutputFormat<K,V> extends FilterOutputFormat<K,V>
MultipleOutputs documentation for more information.| 修飾子とタイプ | フィールドと説明 |
|---|---|
static String |
OUTPUT_FORMAT |
baseOut| コンストラクタと説明 |
|---|
LazyOutputFormat() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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. |
static void |
setOutputFormatClass(Job job,
Class<? extends OutputFormat> theClass)
Set the underlying output format for LazyOutputFormat.
|
public static String OUTPUT_FORMAT
public LazyOutputFormat()
public static void setOutputFormatClass(Job job, Class<? extends OutputFormat> theClass)
job - the Job to modifytheClass - the underlying classpublic RecordWriter<K,V> getRecordWriter(TaskAttemptContext context) throws IOException, InterruptedException
OutputFormatRecordWriter for the given task.getRecordWriter クラス内 FilterOutputFormat<K,V>context - the information about the current task.RecordWriter to write the output for the job.IOExceptionInterruptedExceptionpublic void checkOutputSpecs(JobContext context) throws IOException, InterruptedException
OutputFormatThis 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 クラス内 FilterOutputFormat<K,V>context - information about the jobIOException - when output should not be attemptedInterruptedExceptionpublic OutputCommitter getOutputCommitter(TaskAttemptContext context) throws IOException, InterruptedException
OutputFormatgetOutputCommitter クラス内 FilterOutputFormat<K,V>context - the task contextIOExceptionInterruptedExceptionCopyright © 2016 Apache Software Foundation. All rights reserved.