|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RecordReader
Reads key/value pairs from an input file FileSplit
.
Implemented by InputFormat
implementations.
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. |
long |
getPos()
Returns the current position in the input. |
float |
getProgress()
How far has the reader gone through the input. |
boolean |
next(Writable key,
Writable value)
Reads the next key/value pair. |
Method Detail |
---|
boolean next(Writable key, Writable value) throws IOException
key
- the key to read data intovalue
- the value to read data into
IOException
Writable.readFields(DataInput)
WritableComparable createKey()
Writable createValue()
long getPos() throws IOException
IOException
void close() throws IOException
IOException
float getProgress() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |