|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--ostore.dataobj.Range
A contiguous range of bytes in a data btree.
| Field Summary | |
|---|---|
static long |
INFINITE
A value for length indicating that the remainder of the
byte array should be included in this Range. |
| Constructor Summary | |
|---|---|
Range(InputBuffer buffer)
Creates a Range from its
QuickSerializable form. |
|
Range(long offset,
long length)
Creates a Range |
|
| Method Summary | |
|---|---|
boolean |
before(Range r)
Checks for ordering and separability with another Range.
|
boolean |
contains(Selection sel)
Tests for inclusion with other Selection.
|
boolean |
equals(Object obj)
|
long |
getLength()
The number of bytes to include. |
long |
getOffset()
The index of the first byte to include. |
int |
hashCode()
|
void |
serialize(OutputBuffer buffer)
Add the object to the buffer. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final long INFINITE
length indicating that the remainder of the
byte array should be included in this Range.
| Constructor Detail |
public Range(long offset,
long length)
Range
offset - The index of the first byte to include.length - The number of bytes to include.
public Range(InputBuffer buffer)
throws QSException
Range from its
QuickSerializable form.
| Method Detail |
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean contains(Selection sel)
SelectionSelection.
Iff a.contains(b) and b.contains(a), it
should also be true that a.equals(b).
contains in interface Selectionsel - Another Selection.
true iff this Selection describes
a portion of a DataObject which includes the entire
portion described by sel
(independent of a specific DataObject).public String toString()
toString in class Objectpublic boolean before(Range r)
Range.
This method is used in CompositeSelection integrity
checks.
r - The other Range to compare.
true iff this Range describes a
portion of a byte array that starts before, and does not overlap,
the portion described by the other.public long getOffset()
public long getLength()
public void serialize(OutputBuffer buffer)
QuickSerializablebuffer.
serialize in interface QuickSerializablebuffer - the output buffer to add the object to
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||