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 org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<K,V>
Constructor and Description |
---|
AvroSequenceFileOutputFormat() |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.io.SequenceFile.CompressionType |
getOutputCompressionType(org.apache.hadoop.conf.Configuration conf)
Gets type of compression for the output sequence file.
|
org.apache.hadoop.mapreduce.RecordWriter<K,V> |
getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
static void |
setOutputCompressionType(org.apache.hadoop.mapreduce.Job job,
org.apache.hadoop.io.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, setOutputPath
public org.apache.hadoop.mapreduce.RecordWriter<K,V> getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
getRecordWriter
in class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<K,V>
IOException
InterruptedException
public static void setOutputCompressionType(org.apache.hadoop.mapreduce.Job job, org.apache.hadoop.io.SequenceFile.CompressionType compressionType)
job
- The job configuration.compressionType
- The compression type for the target sequence file.public static org.apache.hadoop.io.SequenceFile.CompressionType getOutputCompressionType(org.apache.hadoop.conf.Configuration conf)
conf
- The job configuration.Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.