org.apache.pig.impl.io
Class PigLineRecordReader.BufferingLineReader

java.lang.Object
  extended by org.apache.pig.impl.io.PigLineRecordReader.Reader
      extended by 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.


Field Summary
 
Fields inherited from class org.apache.pig.impl.io.PigLineRecordReader.Reader
os, OS_UNIX, OS_WINDOWS
 
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
 

Method Detail

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