@InterfaceAudience.Public @InterfaceStability.Stable public class SequenceFileRecordReader<K,V> extends RecordReader<K,V>
RecordReader for SequenceFiles.| Modifier and Type | Field and Description | 
|---|---|
| protected Configuration | conf | 
| Constructor and Description | 
|---|
| SequenceFileRecordReader() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Close the record reader. | 
| K | getCurrentKey()Get the current key | 
| V | getCurrentValue()Get the current value. | 
| float | getProgress()Return the progress within the input split | 
| void | initialize(InputSplit split,
          TaskAttemptContext context)Called once at initialization. | 
| boolean | nextKeyValue()Read the next key, value pair. | 
protected Configuration conf
public void initialize(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException
RecordReaderinitialize in class RecordReader<K,V>split - the split that defines the range of records to readcontext - the information about the taskIOExceptionInterruptedExceptionpublic boolean nextKeyValue()
                     throws IOException,
                            InterruptedException
RecordReadernextKeyValue in class RecordReader<K,V>IOExceptionInterruptedExceptionpublic K getCurrentKey()
RecordReadergetCurrentKey in class RecordReader<K,V>public V getCurrentValue()
RecordReadergetCurrentValue in class RecordReader<K,V>public float getProgress()
                  throws IOException
getProgress in class RecordReader<K,V>IOExceptionpublic void close()
           throws IOException
RecordReaderclose in interface Closeableclose in interface AutoCloseableclose in class RecordReader<K,V>IOExceptionCopyright © 2023 Apache Software Foundation. All rights reserved.