public class NBPlusTreeHelper extends Object
| Constructor and Description |
|---|
NBPlusTreeHelper() |
| Modifier and Type | Method and Description |
|---|---|
static <K> int |
binarySearchKeys(List<K> a,
int numPairs,
K key,
Comparator<K> comparator) |
static <K,V> int |
compareEntries(Map.Entry<K,V> o1,
Map.Entry<K,V> o2,
Comparator<K> comparator) |
static boolean |
eq(Object a,
Object b) |
static <K,V> boolean |
isDeficient(NBPlusTree.Node<K,V> node)
This simple method determines if the LeafNode is deficient, i.e.
|
static <K,V> boolean |
isEmpty(NBPlusTree.Node<K,V> node) |
static <K,V> boolean |
isFull(NBPlusTree.LeafNode<K,V> node)
This simple method determines if the LeafNode is full, i.e.
|
static <K,V> boolean |
isLendable(NBPlusTree.Node<K,V> node)
This simple method determines if the LeafNode object is capable of
lending a dictionary pair to a deficient leaf node.
|
static <K,V> boolean |
isMergeable(NBPlusTree.IntermediateNode<K,V> node)
This simple method determines if the InternalNode is capable of being
merged with.
|
static <K,V> boolean |
isMergeable(NBPlusTree.LeafNode<K,V> node)
This simple method determines if the LeafNode object is capable of being
merged with, which occurs when the number of pairs within the LeafNode
object is equal to the minimum number of pairs it can hold.
|
static <K,V> boolean |
isOverfull(NBPlusTree.IntermediateNode<K,V> node)
This simple method determines if the InternalNode is considered overfull,
i.e.
|
public static <K,V> int compareEntries(Map.Entry<K,V> o1, Map.Entry<K,V> o2, Comparator<K> comparator)
public static <K,V> boolean isDeficient(NBPlusTree.Node<K,V> node)
public static <K,V> boolean isEmpty(NBPlusTree.Node<K,V> node)
public static <K,V> boolean isFull(NBPlusTree.LeafNode<K,V> node)
public static <K,V> boolean isLendable(NBPlusTree.Node<K,V> node)
public static <K,V> boolean isMergeable(NBPlusTree.LeafNode<K,V> node)
public static <K,V> boolean isMergeable(NBPlusTree.IntermediateNode<K,V> node)
public static <K,V> boolean isOverfull(NBPlusTree.IntermediateNode<K,V> node)
public static <K> int binarySearchKeys(List<K> a, int numPairs, K key, Comparator<K> comparator)
Copyright © 2026 vpc open source initiative. All rights reserved.