@InterfaceAudience.Public @InterfaceStability.Stable public class SequenceFileAsTextRecordReader extends Object implements RecordReader<Text,Text>
| Constructor and Description | 
|---|
SequenceFileAsTextRecordReader(Configuration conf,
                              FileSplit split)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()
Close this  
InputSplit to future operations. | 
Text | 
createKey()
Create an object of the appropriate type to be used as a key. 
 | 
Text | 
createValue()
Create an object of the appropriate type to be used as a value. 
 | 
long | 
getPos()
Returns the current position in the input. 
 | 
float | 
getProgress()
How much of the input has the  
RecordReader consumed i.e. | 
boolean | 
next(Text key,
    Text value)
Read key/value pair in a line. 
 | 
public SequenceFileAsTextRecordReader(Configuration conf, FileSplit split) throws IOException
IOExceptionpublic Text createKey()
RecordReadercreateKey in interface RecordReader<Text,Text>public Text createValue()
RecordReadercreateValue in interface RecordReader<Text,Text>public boolean next(Text key, Text value) throws IOException
next in interface RecordReader<Text,Text>key - the key to read data intovalue - the value to read data intoIOExceptionpublic float getProgress()
                  throws IOException
RecordReaderRecordReader consumed i.e.
 has been processed by?getProgress in interface RecordReader<Text,Text>0.0 to 1.0.IOExceptionpublic long getPos()
            throws IOException
RecordReadergetPos in interface RecordReader<Text,Text>IOExceptionpublic void close()
           throws IOException
RecordReaderInputSplit to future operations.close in interface Closeableclose in interface AutoCloseableclose in interface RecordReader<Text,Text>IOExceptionCopyright © 2020 Apache Software Foundation. All rights reserved.