|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--ostore.dataobj.CompositeSelection
A set of Selections; similar to iovecs used in
scatter/gather system calls.
To facilitate use of CompositeSelections, we require that
they adhere to a certain canonical form. Canonical form requres that
component Selections are:
Comparable).
| Constructor Summary | |
|---|---|
CompositeSelection(InputBuffer buffer)
Creates a CompositeSelection from its
QuickSerializable form. |
|
CompositeSelection(Selection[] elts)
Creates a CompositeSelection |
|
| Method Summary | |
|---|---|
boolean |
contains(Selection sel)
Tests for inclusion with other Selection.
|
boolean |
equals(Object obj)
|
Selection[] |
getSelections()
An array of Selections in canonical form, the union of
which define this CompositeSelection.
|
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 CompositeSelection(Selection[] elts)
CompositeSelection
elts - The component Selections.
See the class description for the restrictions on canonical form.
public CompositeSelection(InputBuffer buffer)
throws QSException
CompositeSelection from its
QuickSerializable form.
| Method Detail |
public Selection[] getSelections()
Selections in canonical form, the union of
which define this CompositeSelection.
See above for the restrictions on canonical form.
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 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 | ||||||||||