|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is the abstraction of something which holds objects which are available for lookup. This interface does not, however, specify how the objects are inserted, and makes NO guarantees as to whether objects available at a given point in time will be available at a later time. Implementations of the Catalog interface are designed to be interfaces which specify how objects are inserted and stored, and are designed to include a cache and persistent storage interface.
Method Summary | |
boolean |
exists(Id id)
Returns whether or not an object is present in the location id . |
void |
exists(Id id,
Continuation c)
Returns whether or not an object is present in the location id . |
void |
getObject(Id id,
Continuation c)
Returns the object identified by the given id, or null if
there is no cooresponding object (through receiveResult on c). |
void |
getTotalSize(Continuation c)
Returns the total size of the stored data in bytes.The result is returned via the receiveResult method on the provided Continuation with a Long representing the total size used. |
IdSet |
scan(IdRange range)
Return the objects identified by the given range of ids. |
void |
scan(IdRange range,
Continuation c)
Return the objects identified by the given range of ids. |
Method Detail |
public boolean exists(Id id)
id
.
id
- The id of the object in question.
public void exists(Id id, Continuation c)
id
.
The result is returned via the receiveResult method on the provided
Continuation with an Boolean represnting the result.
Returns True
or False
depending on whether the object
exists (through receiveResult on c);
c
- The command to run once the operation is completeid
- The id of the object in question.public void getObject(Id id, Continuation c)
null
if
there is no cooresponding object (through receiveResult on c).
id
- The id of the object in question.c
- The command to run once the operation is completepublic void scan(IdRange range, Continuation c)
c
- The command to run once the operation is completepublic IdSet scan(IdRange range)
range
- The range to query
public void getTotalSize(Continuation c)
c
- The command to run once the operation is complete
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |