Package org.apache.avro.mapreduce
Class AvroKeyRecordReader<T>
java.lang.Object
org.apache.hadoop.mapreduce.RecordReader<AvroKey<T>,NullWritable>
org.apache.avro.mapreduce.AvroRecordReaderBase<AvroKey<T>,NullWritable,T>
org.apache.avro.mapreduce.AvroKeyRecordReader<T>
- Type Parameters:
T
- The (java) type of data in Avro container file.
- All Implemented Interfaces:
Closeable
,AutoCloseable
Reads records from an input split representing a chunk of an Avro container
file.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Methods inherited from class org.apache.avro.mapreduce.AvroRecordReaderBase
close, createAvroFileReader, createSeekableInput, getCurrentRecord, getProgress, initialize
-
Constructor Details
-
AvroKeyRecordReader
Constructor.- Parameters:
readerSchema
- The reader schema to use for the records in the Avro container file.
-
-
Method Details
-
nextKeyValue
- Overrides:
nextKeyValue
in classAvroRecordReaderBase<AvroKey<T>,
NullWritable, T> - Throws:
IOException
InterruptedException
-
getCurrentKey
- Specified by:
getCurrentKey
in classRecordReader<AvroKey<T>,
NullWritable> - Throws:
IOException
InterruptedException
-
getCurrentValue
- Specified by:
getCurrentValue
in classRecordReader<AvroKey<T>,
NullWritable> - Throws:
IOException
InterruptedException
-