C
- type of the keys that this bucket's objects are ordered bypublic abstract class OrderedLocalBucket<C> extends LocalBucket
LocalBucket
that maintains the stored objects in
a certain order.counterBucketAddObject, counterBucketDelObject, counterBucketRead
Modifier | Constructor and Description |
---|---|
protected |
OrderedLocalBucket(long capacity,
long softCapacity,
long lowOccupation,
boolean occupationAsBytes,
long occupation)
Constructs a new LocalBucket instance and setups all bucket limits
|
Modifier and Type | Method and Description |
---|---|
OrderedIndex<C,LocalAbstractObject> |
getIndex()
Returns the index defined on this bucket that can be used for searching.
|
protected abstract ModifiableOrderedIndex<C,LocalAbstractObject> |
getModifiableIndex()
Returns the index (including storage) for this bucket.
|
addObject, addObject, addObjectErrCode, deleteAllObjects, deleteObject, deleteObject, deleteObject, deleteObjects, deregisterFilter, destroy, finalize, getAllObjects, getBucketID, getCapacity, getFilter, getLowOccupation, getObject, getObject, getObjectCount, getOccupation, getOccupationRatio, getSoftCapacity, isBucketStandalone, isSoftCapacityExceeded, registerFilter, setLowOccupation, setSoftCapacity, toString
addObjects, addObjects, deleteObject, deleteObject, processQuery, provideObjects, split
protected OrderedLocalBucket(long capacity, long softCapacity, long lowOccupation, boolean occupationAsBytes, long occupation)
capacity
- maximal capacity of the bucket - cannot be exceededsoftCapacity
- maximal soft capacity of the bucketlowOccupation
- a minimal occupation for deleting objects - cannot be loweredoccupationAsBytes
- flag whether the occupation (and thus all the limits) are in bytes or number of objectsoccupation
- the actual bucket occupation in either bytes or object count (see occupationAsBytes flag)public OrderedIndex<C,LocalAbstractObject> getIndex()
LocalBucket
getIndex
in class LocalBucket
protected abstract ModifiableOrderedIndex<C,LocalAbstractObject> getModifiableIndex()
LocalBucket
getModifiableIndex
in class LocalBucket