@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
IOException
public void initialize(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException
RecordReader
initialize
in class RecordReader<Text,Text>
split
- the split that defines the range of records to readcontext
- the information about the taskIOException
InterruptedException
public Text getCurrentKey() throws IOException, InterruptedException
RecordReader
getCurrentKey
in class RecordReader<Text,Text>
IOException
InterruptedException
public Text getCurrentValue() throws IOException, InterruptedException
RecordReader
getCurrentValue
in class RecordReader<Text,Text>
IOException
InterruptedException
public boolean nextKeyValue() throws IOException, InterruptedException
nextKeyValue
in class RecordReader<Text,Text>
IOException
InterruptedException
public float getProgress() throws IOException, InterruptedException
RecordReader
getProgress
in class RecordReader<Text,Text>
IOException
InterruptedException
public void close() throws IOException
RecordReader
close
in interface Closeable
close
in interface AutoCloseable
close
in class RecordReader<Text,Text>
IOException
Copyright © 2018 Apache Software Foundation. All rights reserved.