|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapred.SequenceFileRecordReader
An RecordReader
for SequenceFile
s.
Constructor Summary | |
SequenceFileRecordReader(Configuration conf,
FileSplit split)
|
Method Summary | |
void |
close()
Close this to future operations. |
Class |
getKeyClass()
The class of key that must be passed to next(Writable,Writable) .. |
long |
getPos()
Returns the current position in the input. |
Class |
getValueClass()
The class of value that must be passed to next(Writable,Writable) .. |
boolean |
next(Writable key,
Writable value)
Reads the next key/value pair. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SequenceFileRecordReader(Configuration conf, FileSplit split) throws IOException
Method Detail |
public Class getKeyClass()
next(Writable,Writable)
..
public Class getValueClass()
next(Writable,Writable)
..
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)
public long getPos() throws IOException
RecordReader
getPos
in interface RecordReader
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 |