K - type of keys maintained by this iteratorV - type of values returned by this iteratorpublic class IBSkipIterator<K extends Comparable<? super K>,V> extends SkipIterator<K,V>
Loads spans from disk only when needed and unloads them when moving to next span to minimize memory usage.
Overridden to load span when required and null out keys and values when iterator leaves the span. If caller does not iterate all the way through, the last span will remain in memory.
index, ss| Constructor and Description |
|---|
IBSkipIterator(SkipSpan<K,V> ss,
int index) |
| Modifier and Type | Method and Description |
|---|---|
V |
next() |
K |
nextKey()
The key.
|
V |
previous() |
add, hasNext, hasPrevious, nextIndex, previousIndex, remove, setclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic V next()
next in interface Iterator<V>next in interface ListIterator<V>next in class SkipIterator<K extends Comparable<? super K>,V>NoSuchElementExceptionRuntimeException - on IOEpublic K nextKey()
nextKey in class SkipIterator<K extends Comparable<? super K>,V>NoSuchElementExceptionRuntimeException - on IOEpublic V previous()
previous in interface ListIterator<V>previous in class SkipIterator<K extends Comparable<? super K>,V>NoSuchElementExceptionRuntimeException - on IOE