public final class Range extends Object
| Constructor and Description |
|---|
Range(long offset,
int size)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getOffset() |
int |
getSize() |
static Range |
rangeFromChunkInfo(long chunkOffset,
int chunkSize)
The range from the chunk info.
|
static Range |
rangeFromPageInfo(long pageIndex,
int pageSize)
The range from the page info.
|
String |
toString() |
public Range(long offset,
int size)
offset - the range offsetsize - the range sizepublic long getOffset()
public int getSize()
public static Range rangeFromChunkInfo(long chunkOffset, int chunkSize)
chunkOffset - the chunk offsetchunkSize - the chunk sizepublic static Range rangeFromPageInfo(long pageIndex, int pageSize)
pageIndex - the page indexpageSize - the page sizeCopyright © 2013-2015–2015. All rights reserved.