Package org.apache.trevni.avro.mapreduce
Class AvroTrevniKeyRecordReader<T>
java.lang.Object
org.apache.hadoop.mapreduce.RecordReader<org.apache.avro.mapred.AvroKey<T>,NullWritable>
org.apache.trevni.avro.mapreduce.AvroTrevniRecordReaderBase<org.apache.avro.mapred.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<org.apache.avro.mapred.AvroKey<T>,NullWritable,T>
Reads records from an input split representing a chunk of an Trenvi container
file.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.trevni.avro.mapreduce.AvroTrevniRecordReaderBase
close, getCurrentRecord, getProgress, initialize
-
Constructor Details
-
AvroTrevniKeyRecordReader
public AvroTrevniKeyRecordReader()
-
-
Method Details
-
getCurrentKey
- Specified by:
getCurrentKeyin classRecordReader<org.apache.avro.mapred.AvroKey<T>,NullWritable> - Throws:
IOExceptionInterruptedException
-
getCurrentValue
- Specified by:
getCurrentValuein classRecordReader<org.apache.avro.mapred.AvroKey<T>,NullWritable> - Throws:
IOExceptionInterruptedException
-
nextKeyValue
- Overrides:
nextKeyValuein classAvroTrevniRecordReaderBase<org.apache.avro.mapred.AvroKey<T>,NullWritable, T> - Throws:
IOExceptionInterruptedException
-