K - The job output key type (may be a Writable, AvroKey).V - The job output value type (may be a Writable, AvroValue).public class AvroSequenceFileOutputFormat<K,V> extends FileOutputFormat<K,V>
FileOutputFormat.CounterBASE_OUTPUT_NAME, COMPRESS, COMPRESS_CODEC, COMPRESS_TYPE, OUTDIR, PART| Constructor and Description | 
|---|
| AvroSequenceFileOutputFormat() | 
| Modifier and Type | Method and Description | 
|---|---|
| static SequenceFile.CompressionType | getOutputCompressionType(Configuration conf)Gets type of compression for the output sequence file. | 
| RecordWriter<K,V> | getRecordWriter(TaskAttemptContext context) | 
| static void | setOutputCompressionType(Job job,
                        SequenceFile.CompressionType compressionType)Sets the type of compression for the output sequence file. | 
checkOutputSpecs, getCompressOutput, getDefaultWorkFile, getOutputCommitter, getOutputCompressorClass, getOutputName, getOutputPath, getPathForWorkFile, getUniqueFile, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputName, setOutputPathpublic RecordWriter<K,V> getRecordWriter(TaskAttemptContext context) throws IOException, InterruptedException
getRecordWriter in class FileOutputFormat<K,V>IOExceptionInterruptedExceptionpublic static void setOutputCompressionType(Job job, SequenceFile.CompressionType compressionType)
job - The job configuration.compressionType - The compression type for the target sequence file.public static SequenceFile.CompressionType getOutputCompressionType(Configuration conf)
conf - The job configuration.Copyright © 2009–2022 The Apache Software Foundation. All rights reserved.