@InterfaceAudience.Public @InterfaceStability.Stable public class FilterOutputFormat<K,V> extends OutputFormat<K,V>
限定符和类型 | 类和说明 |
---|---|
static class |
FilterOutputFormat.FilterRecordWriter<K,V>
FilterRecordWriter is a convenience wrapper
class that extends the RecordWriter . |
限定符和类型 | 字段和说明 |
---|---|
protected OutputFormat<K,V> |
baseOut |
构造器和说明 |
---|
FilterOutputFormat() |
FilterOutputFormat(OutputFormat<K,V> baseOut)
Create a FilterOutputFormat based on the underlying output format.
|
限定符和类型 | 方法和说明 |
---|---|
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. |
protected OutputFormat<K,V> baseOut
public FilterOutputFormat()
public FilterOutputFormat(OutputFormat<K,V> baseOut)
baseOut
- the underlying OutputFormatpublic RecordWriter<K,V> getRecordWriter(TaskAttemptContext context) throws IOException, InterruptedException
OutputFormat
RecordWriter
for the given task.getRecordWriter
在类中 OutputFormat<K,V>
context
- the information about the current task.RecordWriter
to write the output for the job.IOException
InterruptedException
public void checkOutputSpecs(JobContext context) throws IOException, InterruptedException
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>
context
- information about the jobIOException
- when output should not be attemptedInterruptedException
public OutputCommitter getOutputCommitter(TaskAttemptContext context) throws IOException, InterruptedException
OutputFormat
getOutputCommitter
在类中 OutputFormat<K,V>
context
- the task contextIOException
InterruptedException
Copyright © 2009 The Apache Software Foundation