Class IBSkipSpan<K extends Comparable<? super K>,​V>

java.lang.Object
net.metanotion.util.skiplist.SkipSpan<K,​V>
net.metanotion.io.block.index.BSkipSpan<K,​V>
net.metanotion.io.block.index.IBSkipSpan<K,​V>
All Implemented Interfaces:
Flushable

public class IBSkipSpan<K extends Comparable<? super K>,​V>
extends BSkipSpan<K,​V>
I2P version of BSkipSpan BSkipSpan stores all keys and values in-memory, backed by the file. IBSkipSpan stores only the first key, and no values, in-memory. For a get(), here we do a linear search through the span in the file and load only the found value (super() does a binary search in-memory). For a put() or remove(), we load all keys and values for the span from the file, make the modification, flush() out the keys and values, and null out the keys and values in-memory. Recommended span size is 16.
Author:
zzz