public class DiskRange extends Object
Modifier and Type | Field and Description |
---|---|
protected long |
end
The address afterwards.
|
protected long |
offset
The first address.
|
Constructor and Description |
---|
DiskRange(long offset,
long end) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
ByteBuffer |
getData() |
long |
getEnd() |
int |
getLength() |
long |
getOffset() |
boolean |
hasData() |
int |
hashCode() |
protected boolean |
merge(long otherOffset,
long otherEnd) |
DiskRange |
sliceAndShift(long offset,
long end,
long shiftBy) |
String |
toString() |
protected long offset
protected long end
public long getOffset()
public long getEnd()
public int getLength()
public boolean hasData()
public DiskRange sliceAndShift(long offset, long end, long shiftBy)
public ByteBuffer getData()
protected boolean merge(long otherOffset, long otherEnd)
Copyright © 2017 The Apache Software Foundation. All rights reserved.