Package org.apache.orc.impl
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
ConstructorDescriptionBufferChunk
(long offset, int length) BufferChunk
(ByteBuffer chunk, long offset) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getData()
boolean
hasData()
int
hashCode()
void
setChunk
(ByteBuffer chunk) org.apache.hadoop.hive.common.io.DiskRange
sliceAndShift
(long offset, long end, long shiftBy) final String
toString()
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
-
Constructor Details
-
BufferChunk
public BufferChunk(long offset, int length) -
BufferChunk
-
-
Method Details
-
setChunk
-
hasData
public boolean hasData()- Overrides:
hasData
in classorg.apache.hadoop.hive.common.io.DiskRange
-
toString
- Overrides:
toString
in classorg.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 classorg.apache.hadoop.hive.common.io.DiskRange
-
equals
- Overrides:
equals
in classorg.apache.hadoop.hive.common.io.DiskRangeList
-
hashCode
public int hashCode()- Overrides:
hashCode
in classorg.apache.hadoop.hive.common.io.DiskRangeList
-
getData
- Overrides:
getData
in classorg.apache.hadoop.hive.common.io.DiskRange
-