- java.lang.Object
-
- swim.db.BTreeMap
-
-
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
-
-
-
-
Method Detail
-
settings
public final StoreSettings settings()
-
database
public final Database database()
-
name
public final Value name()
-
tree
public final BTree tree()
-
treeDelegate
public final TreeDelegate treeDelegate()
-
setTreeDelegate
public void setTreeDelegate(TreeDelegate treeDelegate)
-
isResident
public boolean isResident()
-
isResident
public BTreeMap isResident(boolean isResident)
-
isTransient
public boolean isTransient()
-
isTransient
public BTreeMap isTransient(boolean isTransient)
-
snapshot
public BTreeMapView snapshot()
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
span
public long span()
-
treeSize
public long treeSize()
-
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>
-
getIndex
public Slot getIndex(long index)
-
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>
-
drop
public void drop(int lower)
-
take
public void take(int upper)
-
clear
public void clear()
-
reduced
public Value reduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner)
Description copied from interface:ReducedMap
Returns the reduction of thisReducedMap
, combining all contained elements with the givenaccumulator
andcombiner
functions, recomputing only what has changed since the last invocation ofreduced
. Stores partial computations to accelerate repeated reduction of continuously mutating datasets.- Specified by:
reduced
in interfaceReducedMap<Value,Value,Value>
-
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>
-
didFail
protected void didFail(StoreException error)
-
load
public BTreeMap load()
-
commitAsync
public void commitAsync(Commit commit)
-
commit
public Chunk commit(Commit commit) throws InterruptedException
- Throws:
InterruptedException
-
comparator
public Comparator<? super Value> comparator()
- Specified by:
comparator
in interfaceOrderedMap<Value,Value>
- Specified by:
comparator
in interfaceSortedMap<Value,Value>
-
-