T
- The (java) type of the Avro data to write.public class AvroKeyWithMetadataOutputFormat<T>
extends org.apache.avro.mapreduce.AvroOutputFormatBase<org.apache.avro.mapred.AvroKey<T>,org.apache.hadoop.io.NullWritable>
Since Avro container files only contain records (not key/value pairs), this output format ignores the value.
Modifier and Type | Class and Description |
---|---|
protected static class |
AvroKeyWithMetadataOutputFormat.RecordWriterFactory<T>
A factory for creating record writers.
|
Modifier | Constructor and Description |
---|---|
|
AvroKeyWithMetadataOutputFormat()
Constructor.
|
protected |
AvroKeyWithMetadataOutputFormat(AvroKeyWithMetadataOutputFormat.RecordWriterFactory recordWriterFactory)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.mapreduce.RecordWriter<org.apache.avro.mapred.AvroKey<T>,org.apache.hadoop.io.NullWritable> |
getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
getAvroFileOutputStream, getCompressionCodec
checkOutputSpecs, getCompressOutput, getDefaultWorkFile, getOutputCommitter, getOutputCompressorClass, getOutputName, getOutputPath, getPathForWorkFile, getUniqueFile, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputName, setOutputPath
public AvroKeyWithMetadataOutputFormat()
protected AvroKeyWithMetadataOutputFormat(AvroKeyWithMetadataOutputFormat.RecordWriterFactory recordWriterFactory)
recordWriterFactory
- A factory for creating record writers.public org.apache.hadoop.mapreduce.RecordWriter<org.apache.avro.mapred.AvroKey<T>,org.apache.hadoop.io.NullWritable> getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws java.io.IOException
getRecordWriter
in class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<org.apache.avro.mapred.AvroKey<T>,org.apache.hadoop.io.NullWritable>
java.io.IOException