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 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(InputSplit inputSplit,
          TaskAttemptContext context) | 
| boolean | nextKeyValue() | 
getCurrentKey, getCurrentValuepublic void initialize(InputSplit inputSplit, TaskAttemptContext context) throws IOException, InterruptedException
initialize in class RecordReader<K,V>IOExceptionInterruptedExceptionpublic boolean nextKeyValue()
                     throws IOException,
                            InterruptedException
nextKeyValue in class 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 RecordReader<K,V>IOExceptionpublic float getProgress()
                  throws IOException,
                         InterruptedException
getProgress in class RecordReader<K,V>IOExceptionInterruptedExceptionCopyright © 2009–2020 The Apache Software Foundation. All rights reserved.