public class SkipSpan<K extends Comparable<? super K>,V> extends Object implements Flushable
Modifier and Type | Field and Description |
---|---|
K[] |
keys |
static int |
MAX_SIZE
This is actually limited by BlockFile.spanSize which is much smaller
|
SkipSpan<K,V> |
next |
int |
nKeys |
SkipSpan<K,V> |
prev |
V[] |
vals |
Modifier | Constructor and Description |
---|---|
protected |
SkipSpan() |
|
SkipSpan(int size) |
Modifier and Type | Method and Description |
---|---|
K |
firstKey()
I2P
|
void |
flush() |
V |
get(K key) |
SkipSpan<K,V> |
getEnd() |
SkipSpan<K,V> |
getSpan(K key,
int[] search) |
void |
killInstance() |
SkipSpan<K,V> |
newInstance(SkipList<K,V> sl) |
String |
print()
dumps all the data from here to the end
|
SkipSpan<K,V> |
put(K key,
V val,
SkipList<K,V> sl) |
Object[] |
remove(K key,
SkipList<K,V> sl) |
public static final int MAX_SIZE
public int nKeys
public K extends Comparable<? super K>[] keys
public V[] vals
public SkipSpan<K extends Comparable<? super K>,V> next
public SkipSpan<K extends Comparable<? super K>,V> prev
public void killInstance()
public String print()
public SkipSpan<K,V> put(K key, V val, SkipList<K,V> sl)
public Object[] remove(K key, SkipList<K,V> sl)
public K firstKey()