public class BufferChunk extends DiskRangeList
DiskRangeList.CreateHelper, DiskRangeList.MutateHelpernext, prev| Constructor and Description |
|---|
BufferChunk(ByteBuffer chunk,
long offset) |
BufferChunk(long offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
ByteBuffer |
getData() |
boolean |
hasData() |
int |
hashCode() |
void |
setChunk(ByteBuffer chunk) |
DiskRange |
sliceAndShift(long offset,
long end,
long shiftBy) |
String |
toString() |
getTotalLength, hasContiguousNext, insertAfter, insertPartAfter, insertPartBefore, listSize, listToArray, removeAfter, removeSelf, replaceSelfWith, setEnd, split, stringifyDiskRangespublic BufferChunk(long offset,
int length)
public BufferChunk(ByteBuffer chunk, long offset)
public void setChunk(ByteBuffer chunk)
public DiskRange sliceAndShift(long offset, long end, long shiftBy)
sliceAndShift in class DiskRangepublic ByteBuffer getData()
Copyright © 2013–2021 The Apache Software Foundation. All rights reserved.