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 boolean equals(Object other)
equals in class DiskRangeListpublic int hashCode()
hashCode in class DiskRangeListpublic ByteBuffer getData()
Copyright © 2013–2022 The Apache Software Foundation. All rights reserved.