- java.lang.Object
-
- swim.db.QTreeMap<S>
-
- All Implemented Interfaces:
Iterable<swim.spatial.SpatialMap.Entry<swim.structure.Value,S,swim.structure.Value>>,swim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
public class QTreeMap<S> extends Object implements swim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Chunkcommit(Commit commit)voidcommitAsync(Commit commit)booleancontainsKey(Object key)booleancontainsKey(swim.structure.Value key, S shape)booleancontainsValue(Object value)Databasedatabase()swim.util.Cursor<swim.structure.Value>depthValueIterator(int maxDepth)protected voiddidFail(StoreException error)swim.structure.Valueget(Object key)swim.structure.Valueget(swim.structure.Value key, S shape)booleanisEmpty()booleanisResident()QTreeMap<S>isResident(boolean isResident)booleanisTransient()QTreeMap<S>isTransient(boolean isTransient)swim.util.Cursor<swim.spatial.SpatialMap.Entry<swim.structure.Value,S,swim.structure.Value>>iterator()swim.util.Cursor<swim.spatial.SpatialMap.Entry<swim.structure.Value,S,swim.structure.Value>>iterator(S shape)<K> swim.spatial.SpatialValueMap<K,S,swim.structure.Value>keyClass(Class<K> keyClass)<K> swim.spatial.SpatialValueMap<K,S,swim.structure.Value>keyForm(swim.structure.Form<K> keyForm)swim.util.Cursor<swim.structure.Value>keyIterator()QTreeMap<S>load()voidloadAsync(swim.concurrent.Cont<QTreeMap<S>> cont)swim.structure.Valuemove(swim.structure.Value key, S oldShape, S newShape, swim.structure.Value newValue)swim.structure.Valuename()swim.structure.Valueput(swim.structure.Value key, S shape, swim.structure.Value newValue)swim.structure.Valueremove(swim.structure.Value key, S shape)StoreSettingssettings()voidsetTreeDelegate(TreeDelegate treeDelegate)swim.math.Z2Form<S>shapeForm()intsize()QTreeMapView<S>snapshot()longspan()QTreetree()TreeDelegatetreeDelegate()longtreeSize()Trunk<QTree>trunk()<V> swim.spatial.SpatialValueMap<swim.structure.Value,S,V>valueClass(Class<V> valueClass)<V> swim.spatial.SpatialValueMap<swim.structure.Value,S,V>valueForm(swim.structure.Form<V> valueForm)swim.util.Cursor<swim.structure.Value>valueIterator()-
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 swim.structure.Value name()
-
tree
public final QTree tree()
-
treeDelegate
public final TreeDelegate treeDelegate()
-
setTreeDelegate
public void setTreeDelegate(TreeDelegate treeDelegate)
-
shapeForm
public swim.math.Z2Form<S> shapeForm()
-
isResident
public boolean isResident()
-
isTransient
public boolean isTransient()
-
keyForm
public <K> swim.spatial.SpatialValueMap<K,S,swim.structure.Value> keyForm(swim.structure.Form<K> keyForm)
-
keyClass
public <K> swim.spatial.SpatialValueMap<K,S,swim.structure.Value> keyClass(Class<K> keyClass)
-
valueForm
public <V> swim.spatial.SpatialValueMap<swim.structure.Value,S,V> valueForm(swim.structure.Form<V> valueForm)
-
valueClass
public <V> swim.spatial.SpatialValueMap<swim.structure.Value,S,V> valueClass(Class<V> valueClass)
-
snapshot
public QTreeMapView<S> snapshot()
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceswim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
-
size
public int size()
- Specified by:
sizein interfaceswim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
-
span
public long span()
-
treeSize
public long treeSize()
-
containsKey
public boolean containsKey(swim.structure.Value key, S shape)- Specified by:
containsKeyin interfaceswim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceswim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceswim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
-
get
public swim.structure.Value get(Object key)
- Specified by:
getin interfaceswim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
-
get
public swim.structure.Value get(swim.structure.Value key, S shape)- Specified by:
getin interfaceswim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
-
put
public swim.structure.Value put(swim.structure.Value key, S shape, swim.structure.Value newValue)- Specified by:
putin interfaceswim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
-
move
public swim.structure.Value move(swim.structure.Value key, S oldShape, S newShape, swim.structure.Value newValue)- Specified by:
movein interfaceswim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
-
remove
public swim.structure.Value remove(swim.structure.Value key, S shape)- Specified by:
removein interfaceswim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
-
clear
public void clear()
- Specified by:
clearin interfaceswim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
-
iterator
public swim.util.Cursor<swim.spatial.SpatialMap.Entry<swim.structure.Value,S,swim.structure.Value>> iterator(S shape)
- Specified by:
iteratorin interfaceswim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
-
iterator
public swim.util.Cursor<swim.spatial.SpatialMap.Entry<swim.structure.Value,S,swim.structure.Value>> iterator()
-
keyIterator
public swim.util.Cursor<swim.structure.Value> keyIterator()
- Specified by:
keyIteratorin interfaceswim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
-
valueIterator
public swim.util.Cursor<swim.structure.Value> valueIterator()
- Specified by:
valueIteratorin interfaceswim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
-
depthValueIterator
public swim.util.Cursor<swim.structure.Value> depthValueIterator(int maxDepth)
-
didFail
protected void didFail(StoreException error)
-
load
public QTreeMap<S> load() throws InterruptedException
- Throws:
InterruptedException
-
commitAsync
public void commitAsync(Commit commit)
-
commit
public Chunk commit(Commit commit) throws InterruptedException
- Throws:
InterruptedException
-
-