Package net.metanotion.util.skiplist
Class SkipSpan<K extends Comparable<? super K>,V>
java.lang.Object
net.metanotion.util.skiplist.SkipSpan<K,V>
- All Implemented Interfaces:
Flushable
- Direct Known Subclasses:
BSkipSpan
-
Field Details
-
MAX_SIZE
public static final int MAX_SIZEThis is actually limited by BlockFile.spanSize which is much smaller- See Also:
-
nKeys
public int nKeys -
keys
-
vals
-
next
-
prev
-
-
Constructor Details
-
SkipSpan
protected SkipSpan() -
SkipSpan
public SkipSpan(int size)
-
-
Method Details
-
newInstance
-
killInstance
public void killInstance() -
flush
public void flush() -
print
dumps all the data from here to the end -
getEnd
-
getSpan
-
get
-
put
- Returns:
- the new span if it caused a split, else null if it went in an existing span
-
remove
- Returns:
- An array of two objects or null. rv[0] is the removed object. rv[1] is the deleted SkipSpan if the removed object was the last in the SkipSpan. rv is null if no object was removed.
-
firstKey
I2P
-