Package org.apache.trevni.avro.mapreduce
Class AvroTrevniKeyRecordReader<T>
java.lang.Object
org.apache.hadoop.mapreduce.RecordReader<AvroKey<T>,NullWritable>
org.apache.trevni.avro.mapreduce.AvroTrevniRecordReaderBase<AvroKey<T>,NullWritable,T>
org.apache.trevni.avro.mapreduce.AvroTrevniKeyRecordReader<T>
- Type Parameters:
T
- The (java) type of data in Trevni container file.
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class AvroTrevniKeyRecordReader<T>
extends AvroTrevniRecordReaderBase<AvroKey<T>,NullWritable,T>
Reads records from an input split representing a chunk of an Trenvi container
file.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Methods inherited from class org.apache.trevni.avro.mapreduce.AvroTrevniRecordReaderBase
close, getCurrentRecord, getProgress, initialize
-
Constructor Details
-
AvroTrevniKeyRecordReader
public AvroTrevniKeyRecordReader()
-
-
Method Details
-
getCurrentKey
- Specified by:
getCurrentKey
in classRecordReader<AvroKey<T>,
NullWritable> - Throws:
IOException
InterruptedException
-
getCurrentValue
- Specified by:
getCurrentValue
in classRecordReader<AvroKey<T>,
NullWritable> - Throws:
IOException
InterruptedException
-
nextKeyValue
- Overrides:
nextKeyValue
in classAvroTrevniRecordReaderBase<AvroKey<T>,
NullWritable, T> - Throws:
IOException
InterruptedException
-