@InterfaceAudience.Public @InterfaceStability.Stable public class SequenceFileOutputFormat<K,V> extends FileOutputFormat<K,V>
OutputFormat that writes SequenceFiles.BASE_OUTPUT_NAME, COMPRESS, COMPRESS_CODEC, COMPRESS_TYPE, OUTDIR, PART| Constructor and Description | 
|---|
| SequenceFileOutputFormat() | 
| Modifier and Type | Method and Description | 
|---|---|
| static org.apache.hadoop.io.SequenceFile.CompressionType | getOutputCompressionType(JobContext job)Get the  SequenceFile.CompressionTypefor the outputSequenceFile. | 
| RecordWriter<K,V> | getRecordWriter(TaskAttemptContext context)Get the  RecordWriterfor the given task. | 
| protected org.apache.hadoop.io.SequenceFile.Writer | getSequenceWriter(TaskAttemptContext context,
                 Class<?> keyClass,
                 Class<?> valueClass) | 
| static void | setOutputCompressionType(Job job,
                        org.apache.hadoop.io.SequenceFile.CompressionType style)Set the  SequenceFile.CompressionTypefor the outputSequenceFile. | 
checkOutputSpecs, getCompressOutput, getDefaultWorkFile, getOutputCommitter, getOutputCompressorClass, getOutputName, getOutputPath, getPathForWorkFile, getUniqueFile, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputName, setOutputPathprotected org.apache.hadoop.io.SequenceFile.Writer getSequenceWriter(TaskAttemptContext context, Class<?> keyClass, Class<?> valueClass) throws IOException
IOExceptionpublic RecordWriter<K,V> getRecordWriter(TaskAttemptContext context) throws IOException, InterruptedException
OutputFormatRecordWriter for the given task.getRecordWriter in class FileOutputFormat<K,V>context - the information about the current task.RecordWriter to write the output for the job.IOExceptionInterruptedExceptionpublic static org.apache.hadoop.io.SequenceFile.CompressionType getOutputCompressionType(JobContext job)
SequenceFile.CompressionType for the output SequenceFile.job - the JobSequenceFile.CompressionType for the output SequenceFile, 
         defaulting to SequenceFile.CompressionType.RECORDpublic static void setOutputCompressionType(Job job, org.apache.hadoop.io.SequenceFile.CompressionType style)
SequenceFile.CompressionType for the output SequenceFile.job - the Job to modifystyle - the SequenceFile.CompressionType for the output
              SequenceFileCopyright © 2023 Apache Software Foundation. All rights reserved.