|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.OutputFormat<K,V>
org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<K,V>
org.apache.avro.mapreduce.AvroOutputFormatBase<K,V>
K - The type of key to write.V - The type of value to write.public abstract class AvroOutputFormatBase<K,V>
Abstract base class for output formats that write Avro container files.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat |
|---|
org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter |
| Constructor Summary | |
|---|---|
AvroOutputFormatBase()
|
|
| Method Summary | |
|---|---|
protected OutputStream |
getAvroFileOutputStream(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Gets the target output stream where the Avro container file should be written. |
protected static org.apache.avro.file.CodecFactory |
getCompressionCodec(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Gets the configured compression codec from the task context. |
| Methods inherited from class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat |
|---|
checkOutputSpecs, getCompressOutput, getDefaultWorkFile, getOutputCommitter, getOutputCompressorClass, getOutputPath, getPathForWorkFile, getRecordWriter, getUniqueFile, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputPath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AvroOutputFormatBase()
| Method Detail |
|---|
protected static org.apache.avro.file.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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||