- java.lang.Object
-
- swim.db.BTreeMapView
-
-
Constructor Summary
Constructors Constructor Description BTreeMapView(BTree tree)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Field Detail
-
tree
protected final BTree tree
-
-
Constructor Detail
-
BTreeMapView
public BTreeMapView(BTree tree)
-
-
Method Detail
-
tree
public BTree tree()
-
loadAsync
public void loadAsync(Cont<BTreeMapView> future)
-
load
public BTreeMapView load() throws InterruptedException
- Throws:
InterruptedException
-
isResident
public boolean isResident()
-
isTransient
public boolean isTransient()
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceIterableMap<Value,Value>- Specified by:
containsKeyin interfaceMap<Value,Value>- Specified by:
containsKeyin interfaceOrderedMap<Value,Value>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceIterableMap<Value,Value>- Specified by:
containsValuein interfaceMap<Value,Value>- Specified by:
containsValuein interfaceOrderedMap<Value,Value>
-
indexOf
public int indexOf(Object key)
- Specified by:
indexOfin interfaceOrderedMap<Value,Value>
-
getEntry
public Slot getEntry(Object key)
- Specified by:
getEntryin interfaceOrderedMap<Value,Value>
-
getIndex
public Slot getIndex(int index)
- Specified by:
getIndexin interfaceOrderedMap<Value,Value>
-
firstEntry
public Slot firstEntry()
- Specified by:
firstEntryin interfaceOrderedMap<Value,Value>
-
firstKey
public Value firstKey()
-
firstValue
public Value firstValue()
- Specified by:
firstValuein interfaceOrderedMap<Value,Value>
-
lastEntry
public Slot lastEntry()
- Specified by:
lastEntryin interfaceOrderedMap<Value,Value>
-
lastKey
public Value lastKey()
-
lastValue
public Value lastValue()
- Specified by:
lastValuein interfaceOrderedMap<Value,Value>
-
nextEntry
public Slot nextEntry(Value key)
- Specified by:
nextEntryin interfaceOrderedMap<Value,Value>
-
nextKey
public Value nextKey(Value key)
- Specified by:
nextKeyin interfaceOrderedMap<Value,Value>
-
nextValue
public Value nextValue(Value key)
- Specified by:
nextValuein interfaceOrderedMap<Value,Value>
-
previousEntry
public Slot previousEntry(Value key)
- Specified by:
previousEntryin interfaceOrderedMap<Value,Value>
-
previousKey
public Value previousKey(Value key)
- Specified by:
previousKeyin interfaceOrderedMap<Value,Value>
-
previousValue
public Value previousValue(Value key)
- Specified by:
previousValuein interfaceOrderedMap<Value,Value>
-
clear
public void clear()
-
iterator
public OrderedMapCursor<Value,Value> iterator()
-
keyIterator
public Cursor<Value> keyIterator()
- Specified by:
keyIteratorin interfaceIterableMap<Value,Value>- Specified by:
keyIteratorin interfaceOrderedMap<Value,Value>
-
valueIterator
public Cursor<Value> valueIterator()
- Specified by:
valueIteratorin interfaceIterableMap<Value,Value>- Specified by:
valueIteratorin interfaceOrderedMap<Value,Value>
-
comparator
public Comparator<? super Value> comparator()
- Specified by:
comparatorin interfaceOrderedMap<Value,Value>- Specified by:
comparatorin interfaceSortedMap<Value,Value>
-
-