|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--ostore.dataobj.KeyedSelection
A Selection from an indexed btree.
| Constructor Summary | |
|---|---|
KeyedSelection(BtreeKey key,
Selection sub)
Creates a KeyedSelection |
|
KeyedSelection(InputBuffer buffer)
Creates a KeyedSelection from its
QuickSerializable form. |
|
| Method Summary | |
|---|---|
boolean |
before(KeyedSelection ks)
Checks for ordering and separability with another KeyedSelection.
|
boolean |
contains(Selection sel)
Tests for inclusion with other Selection.
|
boolean |
equals(Object obj)
|
BtreeKey |
getKey()
The key which selects a subtree from the top-level btree. |
Selection |
getSelection()
The desired Selection of the subtree. |
int |
hashCode()
|
void |
serialize(OutputBuffer buffer)
Add the object to the buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public KeyedSelection(BtreeKey key,
Selection sub)
KeyedSelection
key - selects a subtree from the top-level btreesub - selects a portion of the subtree
public KeyedSelection(InputBuffer buffer)
throws QSException
KeyedSelection from its
QuickSerializable form.
| Method Detail |
public BtreeKey getKey()
public Selection getSelection()
Selection of the subtree.
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 boolean before(KeyedSelection ks)
KeyedSelection.
This method is used in CompositeSelection integrity
checks.
ks - The other KeyedSelection to compare.
true iff this KeyedSelection's key
is strictly less than the other's key.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 | ||||||||||