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 |
equalRange(DiskRange other) |
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 boolean equalRange(DiskRange other)
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 © 2016 The Apache Software Foundation. All rights reserved.