|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapreduce.RecordReader<K,V> org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader<K,V>
public class SequenceFileRecordReader<K,V>
An RecordReader
for SequenceFile
s.
Field Summary | |
---|---|
protected Configuration |
conf
|
Constructor Summary | |
---|---|
SequenceFileRecordReader()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Configuration conf
Constructor Detail |
---|
public SequenceFileRecordReader()
Method Detail |
---|
public void initialize(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException
RecordReader
initialize
in class RecordReader<K,V>
split
- the split that defines the range of records to readcontext
- the information about the task
IOException
InterruptedException
public boolean nextKeyValue() throws IOException, InterruptedException
RecordReader
nextKeyValue
in class RecordReader<K,V>
IOException
InterruptedException
public K getCurrentKey()
RecordReader
getCurrentKey
in class RecordReader<K,V>
public V getCurrentValue()
RecordReader
getCurrentValue
in class RecordReader<K,V>
public float getProgress() throws IOException
getProgress
in class RecordReader<K,V>
IOException
public void close() throws IOException
RecordReader
close
in interface Closeable
close
in class RecordReader<K,V>
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |