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.
|
protected static int |
getSyncInterval(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Gets the configured sync interval from the task context.
|
checkOutputSpecs, getCompressOutput, getDefaultWorkFile, getOutputCommitter, getOutputCompressorClass, getOutputName, getOutputPath, getPathForWorkFile, getRecordWriter, getUniqueFile, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputName, setOutputPath
protected 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.IOException
protected static int getSyncInterval(org.apache.hadoop.mapreduce.TaskAttemptContext context)
context
- The task attempt context.Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.