java.lang.Object
net.metanotion.util.skiplist.SkipIterator<K,V>
net.metanotion.io.block.index.IBSkipIterator<K,V>
Type Parameters:
K - type of keys maintained by this iterator
V - type of values returned by this iterator
All Implemented Interfaces:
Iterator<V>, ListIterator<V>

public class IBSkipIterator<K extends Comparable<? super K>, V>extends SkipIterator<K,V>
SkipList iterator with on-demand span loading (I2P version).

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.