- 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()
-
load
public BTreeMapView load()
-
isResident
public boolean isResident()
-
isTransient
public boolean isTransient()
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceIterableMap<Value,Value>
- Specified by:
containsKey
in interfaceMap<Value,Value>
- Specified by:
containsKey
in interfaceOrderedMap<Value,Value>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceIterableMap<Value,Value>
- Specified by:
containsValue
in interfaceMap<Value,Value>
- Specified by:
containsValue
in interfaceOrderedMap<Value,Value>
-
indexOf
public int indexOf(Object key)
- Specified by:
indexOf
in interfaceOrderedMap<Value,Value>
-
getEntry
public Slot getEntry(Object key)
- Specified by:
getEntry
in interfaceOrderedMap<Value,Value>
-
getIndex
public Slot getIndex(int index)
- Specified by:
getIndex
in interfaceOrderedMap<Value,Value>
-
firstEntry
public Slot firstEntry()
- Specified by:
firstEntry
in interfaceOrderedMap<Value,Value>
-
firstKey
public Value firstKey()
-
firstValue
public Value firstValue()
- Specified by:
firstValue
in interfaceOrderedMap<Value,Value>
-
lastEntry
public Slot lastEntry()
- Specified by:
lastEntry
in interfaceOrderedMap<Value,Value>
-
lastKey
public Value lastKey()
-
lastValue
public Value lastValue()
- Specified by:
lastValue
in interfaceOrderedMap<Value,Value>
-
nextEntry
public Slot nextEntry(Value key)
- Specified by:
nextEntry
in interfaceOrderedMap<Value,Value>
-
nextKey
public Value nextKey(Value key)
- Specified by:
nextKey
in interfaceOrderedMap<Value,Value>
-
nextValue
public Value nextValue(Value key)
- Specified by:
nextValue
in interfaceOrderedMap<Value,Value>
-
previousEntry
public Slot previousEntry(Value key)
- Specified by:
previousEntry
in interfaceOrderedMap<Value,Value>
-
previousKey
public Value previousKey(Value key)
- Specified by:
previousKey
in interfaceOrderedMap<Value,Value>
-
previousValue
public Value previousValue(Value key)
- Specified by:
previousValue
in interfaceOrderedMap<Value,Value>
-
clear
public void clear()
-
iterator
public OrderedMapCursor<Value,Value> iterator()
-
keyIterator
public Cursor<Value> keyIterator()
- Specified by:
keyIterator
in interfaceIterableMap<Value,Value>
- Specified by:
keyIterator
in interfaceOrderedMap<Value,Value>
-
valueIterator
public Cursor<Value> valueIterator()
- Specified by:
valueIterator
in interfaceIterableMap<Value,Value>
- Specified by:
valueIterator
in interfaceOrderedMap<Value,Value>
-
comparator
public Comparator<? super Value> comparator()
- Specified by:
comparator
in interfaceOrderedMap<Value,Value>
- Specified by:
comparator
in interfaceSortedMap<Value,Value>
-
-