T - The (java) type of the Avro data to write.public class AvroKeyOutputFormat<T> extends AvroOutputFormatBase<AvroKey<T>,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  | AvroKeyOutputFormat.RecordWriterFactory<T>A factory for creating record writers. | 
FileOutputFormat.CounterBASE_OUTPUT_NAME, COMPRESS, COMPRESS_CODEC, COMPRESS_TYPE, OUTDIR, PART| Modifier | Constructor and Description | 
|---|---|
|   | AvroKeyOutputFormat()Constructor. | 
| protected  | AvroKeyOutputFormat(AvroKeyOutputFormat.RecordWriterFactory recordWriterFactory)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| RecordWriter<AvroKey<T>,NullWritable> | getRecordWriter(TaskAttemptContext context) | 
getAvroFileOutputStream, getCompressionCodec, getSyncIntervalcheckOutputSpecs, getCompressOutput, getDefaultWorkFile, getOutputCommitter, getOutputCompressorClass, getOutputName, getOutputPath, getPathForWorkFile, getUniqueFile, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputName, setOutputPathpublic AvroKeyOutputFormat()
protected AvroKeyOutputFormat(AvroKeyOutputFormat.RecordWriterFactory recordWriterFactory)
recordWriterFactory - A factory for creating record writers.public RecordWriter<AvroKey<T>,NullWritable> getRecordWriter(TaskAttemptContext context) throws IOException
getRecordWriter in class FileOutputFormat<AvroKey<T>,NullWritable>IOExceptionCopyright © 2009–2020 The Apache Software Foundation. All rights reserved.