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
public class SkipSpan<K extends Comparable<? super K>,V> extends Object implements Flushable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description KfirstKey()I2Pvoidflush()Vget(K key)SkipSpan<K,V>getEnd()SkipSpan<K,V>getSpan(K key, int[] search)voidkillInstance()SkipSpan<K,V>newInstance(SkipList<K,V> sl)Stringprint()dumps all the data from here to the endSkipSpan<K,V>put(K key, V val, SkipList<K,V> sl)Object[]remove(K key, SkipList<K,V> sl)
-
Field Details
-
Constructor Details
-
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
-