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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanMethods 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<AvroKey<T>,NullWritable> - Throws:
IOExceptionInterruptedException
-
getCurrentValue
- Specified by:
getCurrentValuein classRecordReader<AvroKey<T>,NullWritable> - Throws:
IOExceptionInterruptedException
-
nextKeyValue
- Overrides:
nextKeyValuein classAvroTrevniRecordReaderBase<AvroKey<T>,NullWritable, T> - Throws:
IOExceptionInterruptedException
-