public class NBPlusTreeStoreFixedDisk<K extends Comparable<K>,V> extends Object implements net.thevpc.nuts.util.NBPlusTreeStore<K,V>, Closeable
| Modifier and Type | Class and Description |
|---|---|
static interface |
NBPlusTreeStoreFixedDisk.NBSerializer<T> |
| Constructor and Description |
|---|
NBPlusTreeStoreFixedDisk(File file,
int m,
boolean allowDuplicates,
NBPlusTreeStoreFixedDisk.NBSerializer<K> keySerializer,
NBPlusTreeStoreFixedDisk.NBSerializer<V> valSerializer) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> node,
net.thevpc.nuts.util.NBPlusTree.Node<K,V> pointer,
int index) |
void |
addEntries(net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> node,
Map.Entry<K,V>[] orderedElements) |
void |
addEntry(net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> node,
K k,
V v) |
void |
close() |
net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> |
createInternalNode() |
net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> |
createLeafNode(net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> parent) |
K |
deserializeKey(DataInputStream dis) |
V |
deserializeValue(DataInputStream dis) |
int |
findIndexOfChild(net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> node,
net.thevpc.nuts.util.NBPlusTree.Node<K,V> child) |
net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> |
firstLeaf() |
void |
free(net.thevpc.nuts.util.NBPlusTree.Node<K,V> node) |
void |
incSize(long sizeDiff) |
int |
indexOfKey(net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> leafNode,
K key) |
boolean |
isAllowDuplicates() |
NBPlusTreeStoreFixedDiskNode<K,V> |
loadNode(long blockId) |
int |
m() |
void |
removeChildAt(net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> node,
int index) |
void |
removeChildAt(net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> node,
int index) |
net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> |
root() |
void |
save() |
void |
serializeKey(K key,
DataOutputStream dos) |
void |
serializeValue(V value,
DataOutputStream dos) |
long |
size() |
void |
updateChildAt(net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> node,
int index,
K key,
net.thevpc.nuts.util.NBPlusTree.Node<K,V> child) |
void |
updateFirstLeaf(net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> node) |
void |
updateLeftSibling(net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> node,
net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> value) |
void |
updateLeftSibling(net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> node,
net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> value) |
void |
updateParent(net.thevpc.nuts.util.NBPlusTree.Node<K,V> root,
net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> parent) |
void |
updateRightSibling(net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> node,
net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> value) |
void |
updateRightSibling(net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> node,
net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> value) |
void |
updateRoot(net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> root) |
V |
updateValueAt(net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> node,
int index,
V value) |
public NBPlusTreeStoreFixedDisk(File file, int m, boolean allowDuplicates, NBPlusTreeStoreFixedDisk.NBSerializer<K> keySerializer, NBPlusTreeStoreFixedDisk.NBSerializer<V> valSerializer) throws IOException
IOExceptionpublic int m()
m in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public boolean isAllowDuplicates()
isAllowDuplicates in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public long size()
size in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public void incSize(long sizeDiff)
incSize in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> root()
root in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> firstLeaf()
firstLeaf in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public void updateRoot(net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> root)
updateRoot in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public void updateFirstLeaf(net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> node)
updateFirstLeaf in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> createLeafNode(net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> parent)
createLeafNode in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> createInternalNode()
createInternalNode in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public void updateParent(net.thevpc.nuts.util.NBPlusTree.Node<K,V> root, net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> parent)
updateParent in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public void updateLeftSibling(net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> node, net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> value)
updateLeftSibling in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public void updateRightSibling(net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> node, net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> value)
updateRightSibling in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public void updateLeftSibling(net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> node, net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> value)
updateLeftSibling in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public void updateRightSibling(net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> node, net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> value)
updateRightSibling in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public void addEntry(net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> node, K k, V v)
addEntry in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public void addEntries(net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> node, Map.Entry<K,V>[] orderedElements)
addEntries in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public int findIndexOfChild(net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> node, net.thevpc.nuts.util.NBPlusTree.Node<K,V> child)
findIndexOfChild in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public void addChild(net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> node, net.thevpc.nuts.util.NBPlusTree.Node<K,V> pointer, int index)
addChild in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public void updateChildAt(net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> node, int index, K key, net.thevpc.nuts.util.NBPlusTree.Node<K,V> child)
updateChildAt in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public V updateValueAt(net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> node, int index, V value)
updateValueAt in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public void removeChildAt(net.thevpc.nuts.util.NBPlusTree.IntermediateNode<K,V> node, int index)
removeChildAt in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public void removeChildAt(net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> node, int index)
removeChildAt in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public int indexOfKey(net.thevpc.nuts.util.NBPlusTree.LeafNode<K,V> leafNode, K key)
indexOfKey in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public void free(net.thevpc.nuts.util.NBPlusTree.Node<K,V> node)
free in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public void save()
save in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>public NBPlusTreeStoreFixedDiskNode<K,V> loadNode(long blockId)
public void serializeKey(K key, DataOutputStream dos) throws IOException
IOExceptionpublic K deserializeKey(DataInputStream dis) throws IOException
IOExceptionpublic void serializeValue(V value, DataOutputStream dos) throws IOException
IOExceptionpublic V deserializeValue(DataInputStream dis) throws IOException
IOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface net.thevpc.nuts.util.NBPlusTreeStore<K extends Comparable<K>,V>Copyright © 2026 vpc open source initiative. All rights reserved.