- java.lang.Object
-
- swim.db.QTreeMap<S>
-
- All Implemented Interfaces:
Iterable<SpatialMap.Entry<Value,S,Value>>
,SpatialMap<Value,S,Value>
public class QTreeMap<S> extends Object implements SpatialMap<Value,S,Value>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface swim.spatial.SpatialMap
SpatialMap.Entry<K,S,V>, SpatialMap.SimpleEntry<K,S,V>
-
-
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
-
-
-
-
Method Detail
-
settings
public final StoreSettings settings()
-
database
public final Database database()
-
name
public final Value name()
-
tree
public final QTree tree()
-
treeDelegate
public final TreeDelegate treeDelegate()
-
setTreeDelegate
public void setTreeDelegate(TreeDelegate treeDelegate)
-
isResident
public boolean isResident()
-
isTransient
public boolean isTransient()
-
keyForm
public <K> SpatialValueMap<K,S,Value> keyForm(Form<K> keyForm)
-
keyClass
public <K> SpatialValueMap<K,S,Value> keyClass(Class<K> keyClass)
-
valueForm
public <V> SpatialValueMap<Value,S,V> valueForm(Form<V> valueForm)
-
valueClass
public <V> SpatialValueMap<Value,S,V> valueClass(Class<V> valueClass)
-
snapshot
public QTreeMapView<S> snapshot()
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceSpatialMap<Value,S,Value>
-
size
public int size()
- Specified by:
size
in interfaceSpatialMap<Value,S,Value>
-
span
public long span()
-
treeSize
public long treeSize()
-
containsKey
public boolean containsKey(Value key, S shape)
- Specified by:
containsKey
in interfaceSpatialMap<Value,S,Value>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceSpatialMap<Value,S,Value>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceSpatialMap<Value,S,Value>
-
get
public Value get(Value key, S shape)
- Specified by:
get
in interfaceSpatialMap<Value,S,Value>
-
put
public Value put(Value key, S shape, Value newValue)
- Specified by:
put
in interfaceSpatialMap<Value,S,Value>
-
move
public Value move(Value key, S oldShape, S newShape, Value newValue)
- Specified by:
move
in interfaceSpatialMap<Value,S,Value>
-
remove
public Value remove(Value key, S shape)
- Specified by:
remove
in interfaceSpatialMap<Value,S,Value>
-
clear
public void clear()
- Specified by:
clear
in interfaceSpatialMap<Value,S,Value>
-
iterator
public Cursor<SpatialMap.Entry<Value,S,Value>> iterator(S shape)
- Specified by:
iterator
in interfaceSpatialMap<Value,S,Value>
-
iterator
public Cursor<SpatialMap.Entry<Value,S,Value>> iterator()
-
keyIterator
public Cursor<Value> keyIterator()
- Specified by:
keyIterator
in interfaceSpatialMap<Value,S,Value>
-
valueIterator
public Cursor<Value> valueIterator()
- Specified by:
valueIterator
in interfaceSpatialMap<Value,S,Value>
-
didFail
protected void didFail(StoreException error)
-
commitAsync
public void commitAsync(Commit commit)
-
commit
public Chunk commit(Commit commit) throws InterruptedException
- Throws:
InterruptedException
-
-