java.lang.Object
swim.store.db.MapDataModel
- All Implemented Interfaces:
Iterable<Map.Entry<Value,
,Value>> Map<Value,
,Value> SortedMap<Value,
,Value> MapData<Value,
,Value> BTreeDelegate
,TreeDelegate
,DataBinding
,MapDataBinding
,IterableMap<Value,
,Value> OrderedMap<Value,
Value>
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MapDataContext
protected final Value
protected StoreBinding
protected final BTreeMap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
btreeDidDrop
(BTree newTree, BTree oldTree, long lower) void
btreeDidRemove
(BTree newTree, BTree oldTree, Value key, Value oldValue) void
btreeDidTake
(BTree newTree, BTree oldTree, long upper) void
void
clear()
void
close()
Comparator<? super Value>
boolean
containsKey
(Object key) boolean
containsValue
(Object value) final Database
database()
long
dataSize()
void
drop
(int lower) entrySet()
firstKey()
getIndex
(int index) int
boolean
isEmpty()
boolean
isResident
(boolean isResident) boolean
isTransient
(boolean isTransient) iterator()
keyForm()
keySet()
lastKey()
final Value
name()
previousEntry
(Value key) previousKey
(Value key) previousValue
(Value key) void
void
setDataContext
(MapDataContext dataContext) void
setStoreBinding
(StoreBinding storeBinding) int
size()
snapshot()
final Store
store()
void
take
(int upper) final BTreeMap
tree()
void
treeDidChange
(Tree newTree, Tree oldTree) void
treeDidClear
(Tree newTree, Tree oldTree) void
treeDidCommit
(Tree newTree, Tree oldTree) void
treeDidLoadPage
(Page page) final Value
treeName()
<T> T
unwrapData
(Class<T> dataClass) valueClass
(Class<V2> valueClass) values()
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 Details
-
name
-
tree
-
dataContext
-
storeBinding
-
-
Constructor Details
-
MapDataModel
-
-
Method Details
-
dataContext
- Specified by:
dataContext
in interfaceDataBinding
- Specified by:
dataContext
in interfaceMapDataBinding
-
setDataContext
- Specified by:
setDataContext
in interfaceMapDataBinding
-
storeBinding
- Specified by:
storeBinding
in interfaceDataBinding
-
setStoreBinding
- Specified by:
setStoreBinding
in interfaceDataBinding
-
unwrapData
- Specified by:
unwrapData
in interfaceDataBinding
-
tree
-
database
-
store
-
treeName
-
name
-
keyForm
-
keyForm
-
keyClass
-
valueForm
-
valueForm
-
valueClass
- Specified by:
valueClass
in interfaceMapData<Value,
Value>
-
dataSize
public long dataSize()- Specified by:
dataSize
in interfaceDataBinding
-
isResident
public boolean isResident()- Specified by:
isResident
in interfaceDataBinding
- Specified by:
isResident
in interfaceMapData<Value,
Value>
-
isResident
- Specified by:
isResident
in interfaceDataBinding
- Specified by:
isResident
in interfaceMapData<Value,
Value> - Specified by:
isResident
in interfaceMapDataBinding
-
isTransient
public boolean isTransient()- Specified by:
isTransient
in interfaceDataBinding
- Specified by:
isTransient
in interfaceMapData<Value,
Value>
-
isTransient
- Specified by:
isTransient
in interfaceDataBinding
- Specified by:
isTransient
in interfaceMapData<Value,
Value> - Specified by:
isTransient
in interfaceMapDataBinding
-
isEmpty
public boolean isEmpty() -
size
public int size() -
containsKey
- Specified by:
containsKey
in interfaceIterableMap<Value,
Value> - Specified by:
containsKey
in interfaceMap<Value,
Value> - Specified by:
containsKey
in interfaceOrderedMap<Value,
Value>
-
containsValue
- Specified by:
containsValue
in interfaceIterableMap<Value,
Value> - Specified by:
containsValue
in interfaceMap<Value,
Value> - Specified by:
containsValue
in interfaceOrderedMap<Value,
Value>
-
indexOf
- Specified by:
indexOf
in interfaceOrderedMap<Value,
Value>
-
get
-
getEntry
- Specified by:
getEntry
in interfaceOrderedMap<Value,
Value>
-
getIndex
- Specified by:
getIndex
in interfaceOrderedMap<Value,
Value>
-
firstEntry
- Specified by:
firstEntry
in interfaceOrderedMap<Value,
Value>
-
firstKey
-
firstValue
- Specified by:
firstValue
in interfaceOrderedMap<Value,
Value>
-
lastEntry
- Specified by:
lastEntry
in interfaceOrderedMap<Value,
Value>
-
lastKey
-
lastValue
- Specified by:
lastValue
in interfaceOrderedMap<Value,
Value>
-
nextEntry
- Specified by:
nextEntry
in interfaceOrderedMap<Value,
Value>
-
nextKey
- Specified by:
nextKey
in interfaceOrderedMap<Value,
Value>
-
nextValue
- Specified by:
nextValue
in interfaceOrderedMap<Value,
Value>
-
previousEntry
- Specified by:
previousEntry
in interfaceOrderedMap<Value,
Value>
-
previousKey
- Specified by:
previousKey
in interfaceOrderedMap<Value,
Value>
-
previousValue
- Specified by:
previousValue
in interfaceOrderedMap<Value,
Value>
-
put
-
putAll
-
remove
-
drop
public void drop(int lower) -
take
public void take(int upper) -
clear
public void clear() -
headMap
-
tailMap
-
subMap
-
entrySet
-
keySet
-
values
-
iterator
-
keyIterator
- Specified by:
keyIterator
in interfaceIterableMap<Value,
Value> - Specified by:
keyIterator
in interfaceOrderedMap<Value,
Value>
-
valueIterator
- Specified by:
valueIterator
in interfaceIterableMap<Value,
Value> - Specified by:
valueIterator
in interfaceOrderedMap<Value,
Value>
-
snapshot
-
comparator
- Specified by:
comparator
in interfaceOrderedMap<Value,
Value> - Specified by:
comparator
in interfaceSortedMap<Value,
Value>
-
close
public void close() -
treeDidLoadPage
- Specified by:
treeDidLoadPage
in interfaceTreeDelegate
-
treeDidChange
- Specified by:
treeDidChange
in interfaceTreeDelegate
-
treeDidCommit
- Specified by:
treeDidCommit
in interfaceTreeDelegate
-
treeDidClear
- Specified by:
treeDidClear
in interfaceTreeDelegate
-
btreeDidUpdate
- Specified by:
btreeDidUpdate
in interfaceBTreeDelegate
-
btreeDidRemove
- Specified by:
btreeDidRemove
in interfaceBTreeDelegate
-
btreeDidDrop
- Specified by:
btreeDidDrop
in interfaceBTreeDelegate
-
btreeDidTake
- Specified by:
btreeDidTake
in interfaceBTreeDelegate
-