V - The value typeclass InMemoryValueHolder<V> extends AbstractValueHolder<V>
nbArrayElems, valueArray, valueBtree, valueSerializer, valueThresholdLow, valueThresholdUp| Constructor and Description |
|---|
InMemoryValueHolder(BTree<?,V> parentBtree,
int nbValues)
Creates a new instance of a ValueHolder, containing the serialized values.
|
InMemoryValueHolder(BTree<?,V> parentBtree,
V... values)
Creates a new instance of a ValueHolder, containing Values.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(V checkedValue)
Tells if a value is contained in this ValueHolder
|
protected void |
createSubTree()
Create a new Sub-BTree to store the values.
|
protected void |
manageSubTree()
Manage a new Sub-BTree
|
V |
remove(V value) |
private V |
removeFromArray(V value)
Remove a value from an array
|
private V |
removeFromBtree(V removedValue)
Remove the value from a sub btree
|
(package private) void |
setSubBtree(BTree<V,V> subBtree)
Set the subBtree in the ValueHolder
|
int |
size() |
java.lang.String |
toString() |
add, btreeContains, clone, getCursor, isSubBtree, replaceValueArrayInMemoryValueHolder(BTree<?,V> parentBtree, int nbValues)
parentBtree - the parent BTreevalueSerializer - The Value's serializerraw - The raw data containing the valuesnbValues - the number of stored valuesraw - the byte[] containing either the serialized array of values or the sub-btree offsetInMemoryValueHolder(BTree<?,V> parentBtree, V... values)
parentBtree - The parent BTreevalues - The Values stored in the ValueHolderpublic int size()
protected void createSubTree()
createSubTree in class AbstractValueHolder<V>protected void manageSubTree()
manageSubTree in class AbstractValueHolder<V>public boolean contains(V checkedValue)
contains in interface ValueHolder<V>contains in class AbstractValueHolder<V>checkedValue - The added to checkpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()