K - The type of key to write.V - The type of value to write.public abstract class AvroOutputFormatBase<K,V>
extends org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<K,V>
| Constructor and Description |
|---|
AvroOutputFormatBase() |
| Modifier and Type | Method and Description |
|---|---|
protected OutputStream |
getAvroFileOutputStream(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Gets the target output stream where the Avro container file should be written.
|
protected static CodecFactory |
getCompressionCodec(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Gets the configured compression codec from the task context.
|
checkOutputSpecs, getCompressOutput, getDefaultWorkFile, getOutputCommitter, getOutputCompressorClass, getOutputPath, getPathForWorkFile, getRecordWriter, getUniqueFile, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputPathprotected static CodecFactory getCompressionCodec(org.apache.hadoop.mapreduce.TaskAttemptContext context)
context - The task attempt context.protected OutputStream getAvroFileOutputStream(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
context - The task attempt context.IOExceptionCopyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.