public class BufferChunk extends DiskRangeList
DiskRangeList.CreateHelper, DiskRangeList.MutateHelper
next, 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, stringifyDiskRanges
public 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 DiskRange
public ByteBuffer getData()
Copyright © 2013–2021 The Apache Software Foundation. All rights reserved.