org.apache.pig.impl.io
Class PigLineRecordReader.BufferingLineReader
java.lang.Object
org.apache.pig.impl.io.PigLineRecordReader.Reader
org.apache.pig.impl.io.PigLineRecordReader.BufferingLineReader
- Enclosing class:
- PigLineRecordReader
public static class PigLineRecordReader.BufferingLineReader
- extends PigLineRecordReader.Reader
A buffering LineReader. This class uses org.apache.mapred.LineRecordReader
for reading line using buffering.
Method Summary |
boolean |
getNext(org.apache.hadoop.io.Text value)
Provides next line read from InputStream |
long |
getPosition()
Returns the position of current Buffer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getNext
public boolean getNext(org.apache.hadoop.io.Text value)
throws IOException
- Description copied from class:
PigLineRecordReader.Reader
- Provides next line read from InputStream
- Specified by:
getNext
in class PigLineRecordReader.Reader
- Parameters:
value
- Text the the line is supposed to be returned in
- Returns:
- true if more data is available, else false
- Throws:
IOException
getPosition
public long getPosition()
throws IOException
- Description copied from class:
PigLineRecordReader.Reader
- Returns the position of current Buffer
- Specified by:
getPosition
in class PigLineRecordReader.Reader
- Returns:
- long value of position of current stream
- Throws:
IOException
Copyright © ${year} The Apache Software Foundation