|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapred.SequenceFileRecordReader
public class SequenceFileRecordReader
An RecordReader
for SequenceFile
s.
Field Summary | |
---|---|
protected Configuration |
conf
|
Constructor Summary | |
---|---|
SequenceFileRecordReader(Configuration conf,
FileSplit split)
|
Method Summary | |
---|---|
void |
close()
Close this to future operations. |
WritableComparable |
createKey()
Create an object of the appropriate type to be used as a key. |
Writable |
createValue()
Create an object of the appropriate type to be used as the value. |
protected void |
getCurrentValue(Writable value)
|
Class |
getKeyClass()
The class of key that must be passed to next(Writable,Writable) .. |
long |
getPos()
Returns the current position in the input. |
float |
getProgress()
Return the progress within the input split |
Class |
getValueClass()
The class of value that must be passed to next(Writable,Writable) .. |
protected boolean |
next(Writable key)
|
boolean |
next(Writable key,
Writable value)
Reads the next key/value pair. |
protected void |
seek(long pos)
|
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(Configuration conf, FileSplit split) throws IOException
IOException
Method Detail |
---|
public Class getKeyClass()
next(Writable,Writable)
..
public Class getValueClass()
next(Writable,Writable)
..
public WritableComparable createKey()
RecordReader
createKey
in interface RecordReader
public Writable createValue()
RecordReader
createValue
in interface RecordReader
public boolean next(Writable key, Writable value) throws IOException
RecordReader
next
in interface RecordReader
key
- the key to read data intovalue
- the value to read data into
IOException
Writable.readFields(DataInput)
protected boolean next(Writable key) throws IOException
IOException
protected void getCurrentValue(Writable value) throws IOException
IOException
public float getProgress() throws IOException
getProgress
in interface RecordReader
IOException
public long getPos() throws IOException
RecordReader
getPos
in interface RecordReader
IOException
protected void seek(long pos) throws IOException
IOException
public void close() throws IOException
RecordReader
close
in interface RecordReader
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |