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.Counter
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, getOutputPath, getPathForWorkFile, getUniqueFile, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputPath
public RecordWriter<K,V> getRecordWriter(TaskAttemptContext context) throws IOException, InterruptedException
getRecordWriter
in class FileOutputFormat<K,V>
IOException
InterruptedException
public 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-2014 The Apache Software Foundation. All Rights Reserved.