public class LeafNode extends BPlusNode
| Modifier and Type | Field and Description |
|---|---|
static int |
headerSize |
numEntries| Constructor and Description |
|---|
LeafNode(BPlusTree tree) |
LeafNode(BPlusTree tree,
int pageNum) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(DataBox key) |
InnerEntry |
insertBEntry(LeafEntry ent)
Inserts a LeafEntry into this LeafNode.
|
boolean |
isLeaf() |
Iterator<RecordID> |
scan()
Creates an iterator of RecordIDs for all entries in this node.
|
Iterator<RecordID> |
scanForKey(DataBox key)
Creates an iterator of RecordIDs that correspond to the given key in the
current leafNode Page.
|
Iterator<RecordID> |
scanFrom(DataBox startValue)
Creates an iterator of RecordIDs whose keys are greater than or equal to
the given start value key.
|
InnerEntry |
splitNode(BEntry newEntry)
Splits this LeafNode and returns the resulting InnerEntry to be
pushed/copied up to this LeafNode's parent as a result of the split.
|
getAllValidEntries, getBPlusNode, getPage, getPageNum, getTree, hasSpace, locateLeaf, overwriteBNodeEntriespublic LeafNode(BPlusTree tree)
public LeafNode(BPlusTree tree, int pageNum)
public InnerEntry insertBEntry(LeafEntry ent)
insertBEntry in class BPlusNodeent - the LeafEntry to be insertedpublic InnerEntry splitNode(BEntry newEntry)
public Iterator<RecordID> scan()
public Iterator<RecordID> scanFrom(DataBox startValue)
startValue - the start value keypublic Iterator<RecordID> scanForKey(DataBox key)
key - the search keypublic boolean containsKey(DataBox key)
Copyright © 2017. All rights reserved.