T - The (java) type of data in Avro container file.public class AvroKeyRecordReader<T> extends AvroRecordReaderBase<AvroKey<T>,org.apache.hadoop.io.NullWritable,T>
| Constructor and Description | 
|---|
AvroKeyRecordReader(Schema readerSchema)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
AvroKey<T> | 
getCurrentKey() | 
org.apache.hadoop.io.NullWritable | 
getCurrentValue() | 
boolean | 
nextKeyValue() | 
close, createAvroFileReader, createSeekableInput, getCurrentRecord, getProgress, initializepublic AvroKeyRecordReader(Schema readerSchema)
readerSchema - The reader schema to use for the records in the Avro
                     container file.public boolean nextKeyValue()
                     throws IOException,
                            InterruptedException
nextKeyValue in class AvroRecordReaderBase<AvroKey<T>,org.apache.hadoop.io.NullWritable,T>IOExceptionInterruptedExceptionpublic AvroKey<T> getCurrentKey() throws IOException, InterruptedException
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<AvroKey<T>,org.apache.hadoop.io.NullWritable>IOExceptionInterruptedExceptionpublic org.apache.hadoop.io.NullWritable getCurrentValue()
                                                  throws IOException,
                                                         InterruptedException
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<AvroKey<T>,org.apache.hadoop.io.NullWritable>IOExceptionInterruptedExceptionCopyright © 2009–2019 The Apache Software Foundation. All rights reserved.