| Modifier and Type | Field and Description |
|---|---|
| public 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. |
| public Page | page
The page at the current level. |
| public CursorPos | parent
Next node in the linked list, representing the position within parent level, or null, if we are at the root level already. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | Returns: the amount of memorythe version version)Calculate the memory used by changes that are not yet stored. |
| public String | |
| pack-priv static < key type K, value type V> CursorPos | Returns: head of the CursorPos chain (insertion point)root of the tree page, K the key to search for key)Searches for a given key and creates a breadcrumb trail through a B-tree rooted at a given Page. |
| index | back to summary |
|---|---|
| public 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. In a later case, it could be negative, if the key is not present. | |
| page | back to summary |
|---|---|
| public Page<K, V> page The page at the current level. | |
| parent | back to summary |
|---|---|
| public CursorPos<K, V> parent Next node in the linked list, representing the position within parent level, or null, if we are at the root level already. | |
| CursorPos | back to summary |
|---|---|
| public CursorPos(Page<K, V> page, int index, CursorPos<K, V> parent) | |
| processRemovalInfo | back to summary |
|---|---|
| pack-priv int processRemovalInfo(long version) Calculate the memory used by changes that are not yet stored.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| traverseDown | back to summary |
|---|---|
| pack-priv static <K, V> CursorPos Searches for a given key and creates a breadcrumb trail through a B-tree rooted at a given Page. Resulting path starts at "insertion point" for a given key and goes back to the root. | |