|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapred.TextInputFormat.LineRecordReader
protected static class TextInputFormat.LineRecordReader
Constructor Summary | |
---|---|
TextInputFormat.LineRecordReader(InputStream in,
long offset,
long endOffset)
|
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. |
boolean |
next(Writable key,
Writable value)
Read a line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextInputFormat.LineRecordReader(InputStream in, long offset, long endOffset)
Method Detail |
---|
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
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 |