public class CursorPos
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
index
Index of the key (within page above) used to go down to a lower level
in case of intermediate nodes, or index of the target key for leaf a node.
|
Page |
page
The page at the current level.
|
CursorPos |
parent
Next node in the linked list, representing the position within parent level,
or null, if we are at the root level already.
|
| Constructor and Description |
|---|
CursorPos(Page page,
int index,
CursorPos parent) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
static CursorPos |
traverseDown(Page page,
java.lang.Object key)
Searches for a given key and creates a breadcrumb trail through a B-tree
rooted at a given Page.
|
public Page page
public int index
public CursorPos parent
public static CursorPos traverseDown(Page page, java.lang.Object key)
page - root of the treekey - the key to search forpublic java.lang.String toString()
toString in class java.lang.Object