- 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:
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>
-
getIndex
public Slot getIndex(long index)
-
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>
-
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:ReducedMapReturns the reduction of thisReducedMap, combining all contained elements with the givenaccumulatorandcombinerfunctions, recomputing only what has changed since the last invocation ofreduced. Stores partial computations to accelerate repeated reduction of continuously mutating datasets.- Specified by:
reducedin interfaceReducedMap<Value,Value,Value>
-
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>
-
didFail
protected void didFail(StoreException error)
-
load
public BTreeMap load() throws InterruptedException
- Throws:
InterruptedException
-
commitAsync
public void commitAsync(Commit commit)
-
commit
public Chunk commit(Commit commit) throws InterruptedException
- Throws:
InterruptedException
-
comparator
public Comparator<? super Value> comparator()
- Specified by:
comparatorin interfaceOrderedMap<Value,Value>- Specified by:
comparatorin interfaceSortedMap<Value,Value>
-
-