org.apache.hadoop.hive.ql.io
Class IOContext

java.lang.Object
  extended by org.apache.hadoop.hive.ql.io.IOContext

public class IOContext
extends Object

IOContext basically contains the position information of the current key/value. For blockCompressed files, isBlockPointer should return true, and currentBlockStart refers to the RCFile Block or SequenceFile Block. For non compressed files, isBlockPointer should return false, and currentBlockStart refers to the beginning offset of the current row, nextBlockStart refers the end of current row and beginning of next row.


Constructor Summary
IOContext()
           
 
Method Summary
static IOContext get()
           
 long getCurrentBlockStart()
           
 String getInputFile()
           
 boolean getIOExceptions()
           
 long getNextBlockStart()
           
 boolean isBlockPointer()
           
 void setBlockPointer(boolean isBlockPointer)
           
 void setCurrentBlockStart(long currentBlockStart)
           
 void setInputFile(String inputFile)
           
 void setIOExceptions(boolean ioe)
           
 void setNextBlockStart(long nextBlockStart)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOContext

public IOContext()
Method Detail

get

public static IOContext get()

getCurrentBlockStart

public long getCurrentBlockStart()

setCurrentBlockStart

public void setCurrentBlockStart(long currentBlockStart)

getNextBlockStart

public long getNextBlockStart()

setNextBlockStart

public void setNextBlockStart(long nextBlockStart)

isBlockPointer

public boolean isBlockPointer()

setBlockPointer

public void setBlockPointer(boolean isBlockPointer)

getInputFile

public String getInputFile()

setInputFile

public void setInputFile(String inputFile)

setIOExceptions

public void setIOExceptions(boolean ioe)

getIOExceptions

public boolean getIOExceptions()


Copyright © 2011 The Apache Software Foundation