@InterfaceAudience.Public @InterfaceStability.Stable public class SequenceFileAsTextRecordReader extends RecordReader<Text,Text>
| Constructor and Description | 
|---|
SequenceFileAsTextRecordReader()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()
Close the record reader. 
 | 
Text | 
getCurrentKey()
Get the current key 
 | 
Text | 
getCurrentValue()
Get the current value. 
 | 
float | 
getProgress()
The current progress of the record reader through its data. 
 | 
void | 
initialize(InputSplit split,
          TaskAttemptContext context)
Called once at initialization. 
 | 
boolean | 
nextKeyValue()
Read key/value pair in a line. 
 | 
public SequenceFileAsTextRecordReader()
                               throws IOException
IOExceptionpublic void initialize(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException
RecordReaderinitialize in class RecordReader<Text,Text>split - the split that defines the range of records to readcontext - the information about the taskIOExceptionInterruptedExceptionpublic Text getCurrentKey() throws IOException, InterruptedException
RecordReadergetCurrentKey in class RecordReader<Text,Text>IOExceptionInterruptedExceptionpublic Text getCurrentValue() throws IOException, InterruptedException
RecordReadergetCurrentValue in class RecordReader<Text,Text>IOExceptionInterruptedExceptionpublic boolean nextKeyValue()
                     throws IOException,
                            InterruptedException
nextKeyValue in class RecordReader<Text,Text>IOExceptionInterruptedExceptionpublic float getProgress()
                  throws IOException,
                         InterruptedException
RecordReadergetProgress in class RecordReader<Text,Text>IOExceptionInterruptedExceptionpublic void close()
           throws IOException
RecordReaderclose in interface Closeableclose in interface AutoCloseableclose in class RecordReader<Text,Text>IOExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.