| Modifier and Type | Field and Description |
|---|---|
| private K | |
| private CursorPos | |
| private CursorPos | |
| private K | |
| private Page | |
| private V | |
| private final boolean | |
| private final K |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Cursor(RootReference<K, V>
of the tree rootReference, K starting key (inclusive), if null start from the first / last key from, K ending key (inclusive), if null there is no boundary to, boolean true if tree should be iterated in key's descending order reverse)
|
| Modifier and Type | Method and Description |
|---|---|
| public K | |
| pack-priv Page | |
| public V | |
| public boolean | |
| public K | |
| public void | |
| pack-priv static < key type K, value type V> CursorPos | Returns: CursorPos representing path from the entry found, or from insertion point if not, all the way up to to the root page providedto start from as a root page, K to search for, null means search for the first available key key, boolean true if traversal is in reverse direction, false otherwise reverse)Fetch the next entry that is equal or larger than the given key, starting from the given page. |
| private static <K, V> int |
| current | back to summary |
|---|---|
| private K current | |
| cursorPos | back to summary |
|---|---|
| private CursorPos<K, V> cursorPos | |
| keeper | back to summary |
|---|---|
| private CursorPos<K, V> keeper | |
| last | back to summary |
|---|---|
| private K last | |
| lastPage | back to summary |
|---|---|
| private Page<K, V> lastPage | |
| lastValue | back to summary |
|---|---|
| private V lastValue | |
| reverse | back to summary |
|---|---|
| private final boolean reverse | |
| to | back to summary |
|---|---|
| private final K to | |
| Cursor | back to summary |
|---|---|
| public Cursor(RootReference<K, V> rootReference, K from, K to) | |
| Cursor | back to summary |
|---|---|
public Cursor(RootReference<K, V> rootReference, K from, K to, boolean reverse)
| |
| getKey | back to summary |
|---|---|
| public K getKey() Get the last read key if there was one.
| |
| getPage | back to summary |
|---|---|
| pack-priv Page Get the page where last retrieved key is located.
| |
| getValue | back to summary |
|---|---|
| public V getValue() Get the last read value if there was one.
| |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public K next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| skip | back to summary |
|---|---|
| public void skip(long n) Skip over that many entries. This method is relatively fast (for this map implementation) even if many entries need to be skipped.
| |
| traverseDown | back to summary |
|---|---|
| pack-priv static <K, V> CursorPos Fetch the next entry that is equal or larger than the given key, starting from the given page. This method returns the path.
| |
| upperBound | back to summary |
|---|---|
| private static <K, V> int upperBound(Page<K, V> page) | |