| 构造器和说明 |
|---|
Cursor(RootReference<K,V> rootReference,
K from,
K to) |
Cursor(RootReference<K,V> rootReference,
K from,
K to,
boolean reverse) |
| 限定符和类型 | 方法和说明 |
|---|---|
K |
getKey()
Get the last read key if there was one.
|
V |
getValue()
Get the last read value if there was one.
|
boolean |
hasNext() |
K |
next() |
void |
skip(long n)
Skip over that many entries.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removepublic Cursor(RootReference<K,V> rootReference, K from, K to)
public Cursor(RootReference<K,V> rootReference, K from, K to, boolean reverse)
rootReference - of the treefrom - starting key (inclusive), if null start from the first / last keyto - ending key (inclusive), if null there is no boundaryreverse - true if tree should be iterated in key's descending orderpublic K getKey()
public V getValue()
public void skip(long n)
n - the number of entries to skipCopyright © 2022. All rights reserved.