Class BufferChunk

java.lang.Object
org.apache.hadoop.hive.common.io.DiskRange
org.apache.hadoop.hive.common.io.DiskRangeList
org.apache.orc.impl.BufferChunk

public class BufferChunk extends org.apache.hadoop.hive.common.io.DiskRangeList
The sections of stripe that we have read. This might not match diskRange - 1 disk range can be multiple buffer chunks, depending on DFS block boundaries.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.hadoop.hive.common.io.DiskRangeList

    org.apache.hadoop.hive.common.io.DiskRangeList.CreateHelper, org.apache.hadoop.hive.common.io.DiskRangeList.MutateHelper
  • Field Summary

    Fields inherited from class org.apache.hadoop.hive.common.io.DiskRangeList

    next, prev

    Fields inherited from class org.apache.hadoop.hive.common.io.DiskRange

    end, offset
  • Constructor Summary

    Constructors
    Constructor
    Description
    BufferChunk(long offset, int length)
     
    BufferChunk(ByteBuffer chunk, long offset)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
     
     
    boolean
     
    int
     
    void
     
    org.apache.hadoop.hive.common.io.DiskRange
    sliceAndShift(long offset, long end, long shiftBy)
     
    final String
     

    Methods inherited from class org.apache.hadoop.hive.common.io.DiskRangeList

    getTotalLength, hasContiguousNext, insertAfter, insertPartAfter, insertPartBefore, listSize, listToArray, removeAfter, removeSelf, replaceSelfWith, setEnd, split, stringifyDiskRanges

    Methods inherited from class org.apache.hadoop.hive.common.io.DiskRange

    equalRange, getEnd, getLength, getOffset, merge

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BufferChunk

      public BufferChunk(long offset, int length)
    • BufferChunk

      public BufferChunk(ByteBuffer chunk, long offset)
  • Method Details

    • setChunk

      public void setChunk(ByteBuffer chunk)
    • hasData

      public boolean hasData()
      Overrides:
      hasData in class org.apache.hadoop.hive.common.io.DiskRange
    • toString

      public final String toString()
      Overrides:
      toString in class org.apache.hadoop.hive.common.io.DiskRange
    • sliceAndShift

      public org.apache.hadoop.hive.common.io.DiskRange sliceAndShift(long offset, long end, long shiftBy)
      Overrides:
      sliceAndShift in class org.apache.hadoop.hive.common.io.DiskRange
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class org.apache.hadoop.hive.common.io.DiskRangeList
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.apache.hadoop.hive.common.io.DiskRangeList
    • getData

      public ByteBuffer getData()
      Overrides:
      getData in class org.apache.hadoop.hive.common.io.DiskRange