public class NBPlusTreeStoreMem<K extends Comparable<K>,V> extends Object implements NBPlusTreeStore<K,V>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowDuplicates |
protected NBPlusTree.LeafNode<K,V> |
firstLeaf |
protected int |
m |
protected NBPlusTree.IntermediateNode<K,V> |
root |
protected long |
size |
| Constructor and Description |
|---|
NBPlusTreeStoreMem() |
NBPlusTreeStoreMem(int m,
boolean allowDuplicates) |
protected boolean allowDuplicates
protected int m
protected long size
protected NBPlusTree.IntermediateNode<K extends Comparable<K>,V> root
protected NBPlusTree.LeafNode<K extends Comparable<K>,V> firstLeaf
public NBPlusTreeStoreMem()
public NBPlusTreeStoreMem(int m,
boolean allowDuplicates)
public boolean isAllowDuplicates()
isAllowDuplicates in interface NBPlusTreeStore<K extends Comparable<K>,V>public void updateParent(NBPlusTree.Node<K,V> root, NBPlusTree.IntermediateNode<K,V> parent)
updateParent in interface NBPlusTreeStore<K extends Comparable<K>,V>public void save()
save in interface NBPlusTreeStore<K extends Comparable<K>,V>public NBPlusTree.LeafNode<K,V> createLeafNode(NBPlusTree.IntermediateNode<K,V> parent)
createLeafNode in interface NBPlusTreeStore<K extends Comparable<K>,V>public NBPlusTree.IntermediateNode<K,V> createInternalNode()
createInternalNode in interface NBPlusTreeStore<K extends Comparable<K>,V>public long size()
size in interface NBPlusTreeStore<K extends Comparable<K>,V>public void incSize(long sizeDiff)
incSize in interface NBPlusTreeStore<K extends Comparable<K>,V>public NBPlusTree.IntermediateNode<K,V> root()
root in interface NBPlusTreeStore<K extends Comparable<K>,V>public NBPlusTree.LeafNode<K,V> firstLeaf()
firstLeaf in interface NBPlusTreeStore<K extends Comparable<K>,V>public int m()
m in interface NBPlusTreeStore<K extends Comparable<K>,V>public void updateRoot(NBPlusTree.IntermediateNode<K,V> node)
updateRoot in interface NBPlusTreeStore<K extends Comparable<K>,V>public void updateFirstLeaf(NBPlusTree.LeafNode<K,V> node)
updateFirstLeaf in interface NBPlusTreeStore<K extends Comparable<K>,V>public void free(NBPlusTree.Node<K,V> node)
free in interface NBPlusTreeStore<K extends Comparable<K>,V>public void updateLeftSibling(NBPlusTree.IntermediateNode<K,V> node, NBPlusTree.IntermediateNode<K,V> value)
updateLeftSibling in interface NBPlusTreeStore<K extends Comparable<K>,V>public void updateRightSibling(NBPlusTree.IntermediateNode<K,V> node, NBPlusTree.IntermediateNode<K,V> value)
updateRightSibling in interface NBPlusTreeStore<K extends Comparable<K>,V>public void updateLeftSibling(NBPlusTree.LeafNode<K,V> node, NBPlusTree.LeafNode<K,V> value)
updateLeftSibling in interface NBPlusTreeStore<K extends Comparable<K>,V>public void updateRightSibling(NBPlusTree.LeafNode<K,V> node, NBPlusTree.LeafNode<K,V> value)
updateRightSibling in interface NBPlusTreeStore<K extends Comparable<K>,V>public void addEntry(NBPlusTree.LeafNode<K,V> node, K k, V v)
addEntry in interface NBPlusTreeStore<K extends Comparable<K>,V>public void addEntries(NBPlusTree.LeafNode<K,V> node, Map.Entry<K,V>[] orderedElements)
addEntries in interface NBPlusTreeStore<K extends Comparable<K>,V>public int findIndexOfChild(NBPlusTree.IntermediateNode<K,V> node, NBPlusTree.Node<K,V> child)
findIndexOfChild in interface NBPlusTreeStore<K extends Comparable<K>,V>public void addChild(NBPlusTree.IntermediateNode<K,V> node, NBPlusTree.Node<K,V> pointer, int index)
addChild in interface NBPlusTreeStore<K extends Comparable<K>,V>public void updateChildAt(NBPlusTree.IntermediateNode<K,V> node, int index, K key, NBPlusTree.Node<K,V> child)
updateChildAt in interface NBPlusTreeStore<K extends Comparable<K>,V>public V updateValueAt(NBPlusTree.LeafNode<K,V> node, int index, V value)
updateValueAt in interface NBPlusTreeStore<K extends Comparable<K>,V>public void removeChildAt(NBPlusTree.LeafNode<K,V> node, int index)
removeChildAt in interface NBPlusTreeStore<K extends Comparable<K>,V>index: - the location within the dictionary to be set to nullpublic int indexOfKey(NBPlusTree.LeafNode<K,V> node, K key)
indexOfKey in interface NBPlusTreeStore<K extends Comparable<K>,V>public void removeChildAt(NBPlusTree.IntermediateNode<K,V> node, int index)
removeChildAt in interface NBPlusTreeStore<K extends Comparable<K>,V>public void close()
close in interface AutoCloseableclose in interface NBPlusTreeStore<K extends Comparable<K>,V>Copyright © 2026 vpc open source initiative. All rights reserved.