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