K - The type of key the record reader should generate.V - The type of value the record reader should generate.T - The type of the entries within the Trevni container file being
            read.public abstract class AvroTrevniRecordReaderBase<K,V,T>
extends org.apache.hadoop.mapreduce.RecordReader<K,V>
RecordReaders that read Trevni container
 files.| Constructor and Description | 
|---|
AvroTrevniRecordReaderBase()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close() | 
protected T | 
getCurrentRecord()
Gets the current record read from the Trevni container file. 
 | 
float | 
getProgress() | 
void | 
initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
          org.apache.hadoop.mapreduce.TaskAttemptContext context) | 
boolean | 
nextKeyValue() | 
public void initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
                       org.apache.hadoop.mapreduce.TaskAttemptContext context)
                throws IOException,
                       InterruptedException
initialize in class org.apache.hadoop.mapreduce.RecordReader<K,V>IOExceptionInterruptedExceptionpublic boolean nextKeyValue()
                     throws IOException,
                            InterruptedException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<K,V>IOExceptionInterruptedExceptionprotected T getCurrentRecord()
 Calling nextKeyValue() moves this to the next record.
 
public void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<K,V>IOExceptionpublic float getProgress()
                  throws IOException,
                         InterruptedException
getProgress in class org.apache.hadoop.mapreduce.RecordReader<K,V>IOExceptionInterruptedExceptionCopyright © 2009–2021 The Apache Software Foundation. All rights reserved.