|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
O
- OB object.B
- The bucket that will be employed.public interface BucketContainer<O extends OB,B extends BucketObject,Q>
A BucketContainer stores SMAP vectors of objects. It is possible to search, add and remove objects stored here.
Method Summary | |
---|---|
OperationStatus |
delete(B bucket,
O object)
Deletes the given object from this BucketContainer . |
OperationStatus |
exists(B bucket,
O object)
Returns true if the object and its bucket definition exist in this container |
List<B> |
getObjects()
Return the object list! |
int |
getPivots()
# of pivots for this container. |
OperationStatus |
insert(B bucket,
O object)
Inserts the given object with the given bucket details to this bucket. |
OperationStatus |
insertBulk(B bucket,
O object)
Inserts the given object with the given bucket details to this bucket. |
boolean |
isModified()
Return true if the bucket has been modified since it was instantiated. |
void |
search(AbstractOBQuery<O> q,
B bucket,
Filter<O> filter,
Statistics stats)
Same as search(AbstractOBQuery, BucketObject, Filter, Statistics) but
it forces the query AbstractOBQuery |
void |
search(Q query,
B bucket,
ByteBuffer b,
Filter<O> filter,
Statistics stats)
Match the given query and bucket but only for one record found in b. |
void |
search(Q query,
B bucket,
Filter<O> filter,
Statistics stats)
Searches the given object with the given searchContainer parameters. |
byte[] |
serialize()
Serialize the bucket |
void |
setKey(byte[] key)
Sets the key (bucket id) of a bucket container |
void |
setPivots(int pivots)
Sets the # of pivots for this container. |
int |
size()
# of objects in this container. |
Method Detail |
---|
OperationStatus delete(B bucket, O object) throws OBException, IllegalIdException, IllegalAccessException, InstantiationException
BucketContainer
.
bucket
- This will should match this bucket's id. Used to pass
additional information such as the SMAP vectorobject
- The object that will be deleted.
Status.OK
and the deleted object's id if the
object was found and successfully deleted.
Status.NOT_EXISTS
if the object is not in
the database.
OBException
IllegalIdException
IllegalAccessException
InstantiationException
OperationStatus insert(B bucket, O object) throws OBException, IllegalIdException, IllegalAccessException, InstantiationException
bucket
- This will should match this bucket's id. Used to pass
additional information such as the SMAP vector.
Status.OK
or
Status.EXISTS
then the result will hold the
id of the inserted object and the operation is successful.
OBException
IllegalIdException
IllegalAccessException
InstantiationException
OperationStatus insertBulk(B bucket, O object) throws OBException, IllegalIdException, IllegalAccessException, InstantiationException
bucket
- This will should match this bucket's id. Used to pass
additional information such as the SMAP vector.
Status.OK
OBException
IllegalIdException
IllegalAccessException
InstantiationException
List<B> getObjects()
OperationStatus exists(B bucket, O object) throws OBException, IllegalIdException, IllegalAccessException, InstantiationException
bucket
- The bucket associated to objectobject
- The object that will be inserted
OBException
com.sleepycat.je.DatabaseException
IllegalIdException
IllegalAccessException
InstantiationException
void search(Q query, B bucket, ByteBuffer b, Filter<O> filter, Statistics stats) throws IllegalAccessException, OBException, InstantiationException, IllegalIdException
query
- The search parameters (range, priority queue with the closest
elements)bucket
- The bucket of the given object.object
- The object that will be searched.filter
- Filter to be employed.
IllegalAccessException
OBException
InstantiationException
IllegalIdException
void search(Q query, B bucket, Filter<O> filter, Statistics stats) throws IllegalAccessException, OBException, InstantiationException, IllegalIdException
query
- The search parameters (range, priority queue with the closest
elements)bucket
- The bucket of the given object.object
- The object that will be searched.filter
- Filter to be employed.
IllegalAccessException
OBException
InstantiationException
IllegalIdException
void search(AbstractOBQuery<O> q, B bucket, Filter<O> filter, Statistics stats) throws IllegalAccessException, OBException, InstantiationException, IllegalIdException
search(AbstractOBQuery, BucketObject, Filter, Statistics)
but
it forces the query AbstractOBQuery
q
- bucket
- stats
-
IllegalAccessException
com.sleepycat.je.DatabaseException
OBException
InstantiationException
IllegalIdException
int size() throws OBException
OBException
int getPivots()
void setPivots(int pivots)
void setKey(byte[] key)
key
- byte[] serialize() throws OBException
OBException
boolean isModified()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |