|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.dev.store.btree.Cursor<K,V>
K - the key typeV - the value typepublic class Cursor<K,V>
A cursor to iterate over elements in ascending order.
| Field Summary | |
|---|---|
protected K |
current
|
protected CursorPos |
currentPos
|
protected MVMap<K,V> |
map
|
protected java.util.ArrayList<CursorPos> |
parents
|
| Method Summary | |
|---|---|
protected void |
fetchNext()
Fetch the next key. |
boolean |
hasNext()
|
CursorPos |
min(Page p,
K from)
Visit the first key that is greater or equal the given key. |
K |
next()
|
CursorPos |
pop()
Remove the latest cursor position from the stack and return it. |
void |
push(CursorPos p)
Add a cursor position to the stack. |
void |
remove()
|
CursorPos |
visitChild(Page p,
int childIndex)
Visit the first key within this child page. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final MVMap<K,V> map
protected final java.util.ArrayList<CursorPos> parents
protected CursorPos currentPos
protected K current
| Method Detail |
|---|
public K next()
next in interface java.util.Iterator<K>protected void fetchNext()
public boolean hasNext()
hasNext in interface java.util.Iterator<K>public void remove()
remove in interface java.util.Iterator<K>public void push(CursorPos p)
p - the cursor positionpublic CursorPos pop()
public CursorPos min(Page p,
K from)
p - the pagefrom - the key, or null
public CursorPos visitChild(Page p,
int childIndex)
p - the pagechildIndex - the child index
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||