Package org.apache.avro.mapreduce
Class AvroSequenceFileInputFormat.AvroSequenceFileRecordReader
java.lang.Object
org.apache.hadoop.mapreduce.RecordReader<K,V>
org.apache.avro.mapreduce.AvroSequenceFileInputFormat.AvroSequenceFileRecordReader
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
AvroSequenceFileInputFormat<K,V>
Reads records from a SequenceFile that supports Avro data.
This class is based on Hadoop's SequenceFileRecordReader, modified to construct an AvroSequenceFile.Reader instead of a SequenceFile.Reader.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()floatvoidinitialize(InputSplit split, TaskAttemptContext context) boolean
-
Constructor Details
-
AvroSequenceFileRecordReader
protected AvroSequenceFileRecordReader()
-
-
Method Details
-
initialize
public void initialize(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException - Specified by:
initializein classRecordReader<K,V> - Throws:
IOExceptionInterruptedException
-
nextKeyValue
- Specified by:
nextKeyValuein classRecordReader<K,V> - Throws:
IOExceptionInterruptedException
-
getCurrentKey
- Specified by:
getCurrentKeyin classRecordReader<K,V>
-
getCurrentValue
- Specified by:
getCurrentValuein classRecordReader<K,V>
-
getProgress
- Specified by:
getProgressin classRecordReader<K,V> - Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classRecordReader<K,V> - Throws:
IOException
-