Package org.apache.hadoop.mapred.lib
Class MultipleSequenceFileOutputFormat<K,V>
java.lang.Object
org.apache.hadoop.mapred.FileOutputFormat<K,V>
org.apache.hadoop.mapred.lib.MultipleOutputFormat<K,V>
org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat<K,V>
- All Implemented Interfaces:
OutputFormat<K,V>
@Public
@Stable
public class MultipleSequenceFileOutputFormat<K,V>
extends MultipleOutputFormat<K,V>
This class extends the MultipleOutputFormat, allowing to write the output data
to different output files in sequence file output format.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.mapred.FileOutputFormat
FileOutputFormat.Counter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RecordWriter<K,V> getBaseRecordWriter(FileSystem fs, JobConf job, String name, Progressable arg3) Methods inherited from class org.apache.hadoop.mapred.lib.MultipleOutputFormat
generateActualKey, generateActualValue, generateFileNameForKeyValue, generateLeafFileName, getInputFileBasedOutputFileName, getRecordWriterMethods inherited from class org.apache.hadoop.mapred.FileOutputFormat
checkOutputSpecs, getCompressOutput, getOutputCompressorClass, getOutputPath, getPathForCustomFile, getTaskOutputPath, getUniqueName, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputPath, setWorkOutputPath
-
Constructor Details
-
MultipleSequenceFileOutputFormat
public MultipleSequenceFileOutputFormat()
-
-
Method Details
-
getBaseRecordWriter
protected RecordWriter<K,V> getBaseRecordWriter(FileSystem fs, JobConf job, String name, Progressable arg3) throws IOException - Specified by:
getBaseRecordWriterin classMultipleOutputFormat<K,V> - Parameters:
fs- the file system to usejob- a job conf objectname- the name of the file over which a record writer object will be constructedarg3- a progressable object- Returns:
- A RecordWriter object over the given file
- Throws:
IOException
-