|
|||||||||||
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 Selection
s; similar to iovec
s used in
scatter/gather system calls.
To facilitate use of CompositeSelection
s, we require that
they adhere to a certain canonical form. Canonical form requres that
component Selection
s 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 Selection s 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 Selection
s.
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()
Selection
s 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 Object
public int hashCode()
hashCode
in class Object
public boolean contains(Selection sel)
Selection
Selection
.
Iff a.contains(b)
and b.contains(a)
, it
should also be true that a.equals(b)
.
contains
in interface Selection
sel
- 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)
QuickSerializable
buffer
.
serialize
in interface QuickSerializable
buffer
- the output buffer to add the object to
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |