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

java.lang.Object
  extended by org.apache.pig.impl.io.PigLineRecordReader.Reader
Direct Known Subclasses:
PigLineRecordReader.BufferingLineReader, PigLineRecordReader.LineReader
Enclosing class:
PigLineRecordReader

public abstract static class PigLineRecordReader.Reader
extends Object

Abstract class that is used to handle reading of values


Field Summary
protected  int os
          Variable maintaining OS Type used for finding EOL in UNIX and WINDOWS
protected static int OS_UNIX
           
protected static int OS_WINDOWS
           
 
Method Summary
abstract  boolean getNext(org.apache.hadoop.io.Text value)
          Provides next line read from InputStream
abstract  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
 

Field Detail

os

protected int os
Variable maintaining OS Type used for finding EOL in UNIX and WINDOWS


OS_UNIX

protected static final int OS_UNIX
See Also:
Constant Field Values

OS_WINDOWS

protected static final int OS_WINDOWS
See Also:
Constant Field Values
Method Detail

getNext

public abstract boolean getNext(org.apache.hadoop.io.Text value)
                         throws IOException
Provides next line read from InputStream

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 abstract long getPosition()
                          throws IOException
Returns the position of current Buffer

Returns:
long value of position of current stream
Throws:
IOException


Copyright © ${year} The Apache Software Foundation