org.apache.hadoop.hive.ql.io
Class IOContext
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IOContext
public IOContext()
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