java.lang.Object
swim.collections.BTreeContext<K,V>
swim.collections.BTree<K,V>
- All Implemented Interfaces:
Iterable<Map.Entry<K,,V>> Map<K,,V> SortedMap<K,,V> Debug,IterableMap<K,,V> OrderedMap<K,V>
Immutable
OrderedMap backed by a B-tree.-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()cleared()Comparator<? super K>booleancontainsKey(Object key) booleancontainsValue(Object value) <T> Output<T>Writes a developer readable, debug-formatted string representation of this object tooutput.drop(int lower) static <K,V> BTree<K, V> empty()booleanfirstKey()static <K,V> BTree<K, V> getIndex(int index) inthashCode()intbooleanisEmpty()iterator()lastKey()previousEntry(K key) previousKey(K key) previousValue(K key) voidintsize()take(int upper) toString()Methods inherited from class swim.collections.BTreeContext
compareKey, pageShouldMerge, pageShouldSplit, pageSplitSizeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
BTree
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
size
public int size() -
containsKey
- Specified by:
containsKeyin interfaceIterableMap<K,V> - Specified by:
containsKeyin interfaceMap<K,V> - Specified by:
containsKeyin interfaceOrderedMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceIterableMap<K,V> - Specified by:
containsValuein interfaceMap<K,V> - Specified by:
containsValuein interfaceOrderedMap<K,V>
-
indexOf
- Specified by:
indexOfin interfaceOrderedMap<K,V>
-
get
-
getEntry
- Specified by:
getEntryin interfaceOrderedMap<K,V>
-
getIndex
- Specified by:
getIndexin interfaceOrderedMap<K,V>
-
firstEntry
- Specified by:
firstEntryin interfaceOrderedMap<K,V>
-
firstKey
-
firstValue
- Specified by:
firstValuein interfaceOrderedMap<K,V>
-
lastEntry
- Specified by:
lastEntryin interfaceOrderedMap<K,V>
-
lastKey
-
lastValue
- Specified by:
lastValuein interfaceOrderedMap<K,V>
-
nextEntry
- Specified by:
nextEntryin interfaceOrderedMap<K,V>
-
nextKey
- Specified by:
nextKeyin interfaceOrderedMap<K,V>
-
nextValue
- Specified by:
nextValuein interfaceOrderedMap<K,V>
-
previousEntry
- Specified by:
previousEntryin interfaceOrderedMap<K,V>
-
previousKey
- Specified by:
previousKeyin interfaceOrderedMap<K,V>
-
previousValue
- Specified by:
previousValuein interfaceOrderedMap<K,V>
-
put
-
putAll
-
remove
-
drop
-
take
-
clear
public void clear() -
updated
-
removed
-
cleared
-
iterator
-
keyIterator
- Specified by:
keyIteratorin interfaceIterableMap<K,V> - Specified by:
keyIteratorin interfaceOrderedMap<K,V>
-
valueIterator
- Specified by:
valueIteratorin interfaceIterableMap<K,V> - Specified by:
valueIteratorin interfaceOrderedMap<K,V>
-
reverseIterator
-
reverseKeyIterator
-
reverseValueIterator
-
copy
-
comparator
- Specified by:
comparatorin interfaceOrderedMap<K,V> - Specified by:
comparatorin interfaceSortedMap<K,V>
-
equals
-
hashCode
public int hashCode() -
debug
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput. -
toString
-
empty
-
from
-