@InterfaceAudience.Public @InterfaceStability.Stable public class FilterOutputFormat<K,V> extends Object implements OutputFormat<K,V>
| Modifier and Type | Field and Description |
|---|---|
protected OutputFormat<K,V> |
baseOut |
| Constructor and Description |
|---|
FilterOutputFormat() |
FilterOutputFormat(OutputFormat<K,V> out)
Create a FilterOutputFormat based on the supplied output format.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
protected OutputFormat<K,V> baseOut
public FilterOutputFormat()
public FilterOutputFormat(OutputFormat<K,V> out)
out - the underlying OutputFormatpublic RecordWriter<K,V> getRecordWriter(FileSystem ignored, JobConf job, String name, Progressable progress) throws IOException
OutputFormatRecordWriter for the given job.getRecordWriter in interface OutputFormat<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.IOExceptionpublic void checkOutputSpecs(FileSystem ignored, JobConf job) throws IOException
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 in interface OutputFormat<K,V>job - job configuration.IOException - when output should not be attemptedCopyright © 2022 Apache Software Foundation. All rights reserved.