public class InnerNode extends BPlusNode
| Modifier and Type | Field and Description |
|---|---|
static int |
headerSize |
numEntries| Constructor and Description |
|---|
InnerNode(BPlusTree tree) |
InnerNode(BPlusTree tree,
int pageNum) |
| Modifier and Type | Method and Description |
|---|---|
int |
findChildFromKey(DataBox key)
Finds the correct child of this InnerNode whose subtree contains the
given key.
|
int |
getFirstChild() |
InnerEntry |
insertBEntry(LeafEntry ent)
Inserts a LeafEntry into the corresponding LeafNode in this subtree.
|
boolean |
isLeaf() |
void |
setFirstChild(int val) |
InnerEntry |
splitNode(BEntry newEntry)
Splits this InnerNode and returns the resulting InnerEntry to be
pushed/copied up to this InnerNode's parent as a result of the split.
|
getAllValidEntries, getBPlusNode, getPage, getPageNum, getTree, hasSpace, locateLeaf, overwriteBNodeEntriespublic InnerNode(BPlusTree tree)
public InnerNode(BPlusTree tree, int pageNum)
public int getFirstChild()
public void setFirstChild(int val)
public int findChildFromKey(DataBox key)
key - the given keypublic InnerEntry insertBEntry(LeafEntry ent)
insertBEntry in class BPlusNodeent - the LeafEntry to be insertedpublic InnerEntry splitNode(BEntry newEntry)
Copyright © 2017. All rights reserved.