public class NBPlusTreeHelper extends Object
| Constructor and Description |
|---|
NBPlusTreeHelper() |
| Modifier and Type | Method and Description |
|---|---|
static <K extends Comparable<K>> |
binarySearchKeys(List<K> a,
int numPairs,
K key) |
static <K extends Comparable<K>,V> |
compareEntries(Map.Entry<K,V> o1,
Map.Entry<K,V> o2) |
static <K extends Comparable<K>> |
compareKey(K k1,
K k2) |
static boolean |
eq(Object a,
Object b) |
static <K extends Comparable<K>,V> |
isDeficient(NBPlusTree.Node<K,V> node)
This simple method determines if the LeafNode is deficient, i.e.
|
static <K extends Comparable<K>,V> |
isEmpty(NBPlusTree.Node<K,V> node) |
static <K extends Comparable<K>,V> |
isFull(NBPlusTree.LeafNode<K,V> node)
This simple method determines if the LeafNode is full, i.e.
|
static <K extends Comparable<K>,V> |
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 extends Comparable<K>,V> |
isMergeable(NBPlusTree.IntermediateNode<K,V> node)
This simple method determines if the InternalNode is capable of being
merged with.
|
static <K extends Comparable<K>,V> |
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 extends Comparable<K>,V> |
isOverfull(NBPlusTree.IntermediateNode<K,V> node)
This simple method determines if the InternalNode is considered overfull,
i.e.
|
public static <K extends Comparable<K>,V> int compareEntries(Map.Entry<K,V> o1, Map.Entry<K,V> o2)
public static <K extends Comparable<K>> int compareKey(K k1, K k2)
public static <K extends Comparable<K>,V> boolean isDeficient(NBPlusTree.Node<K,V> node)
public static <K extends Comparable<K>,V> boolean isEmpty(NBPlusTree.Node<K,V> node)
public static <K extends Comparable<K>,V> boolean isFull(NBPlusTree.LeafNode<K,V> node)
public static <K extends Comparable<K>,V> boolean isLendable(NBPlusTree.Node<K,V> node)
public static <K extends Comparable<K>,V> boolean isMergeable(NBPlusTree.LeafNode<K,V> node)
public static <K extends Comparable<K>,V> boolean isMergeable(NBPlusTree.IntermediateNode<K,V> node)
public static <K extends Comparable<K>,V> boolean isOverfull(NBPlusTree.IntermediateNode<K,V> node)
public static <K extends Comparable<K>> int binarySearchKeys(List<K> a, int numPairs, K key)
Copyright © 2026 vpc open source initiative. All rights reserved.