- java.lang.Object
-
- swim.db.QTreeMapView<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 QTreeMapView<S> extends Object implements swim.spatial.SpatialMap<swim.structure.Value,S,swim.structure.Value>
-
-
Constructor Summary
Constructors Constructor Description QTreeMapView(QTree tree, swim.math.Z2Form<S> shapeForm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object value)booleancontainsKey(swim.structure.Value key, S shape)booleancontainsValue(Object value)swim.structure.Valueget(Object key)swim.structure.Valueget(swim.structure.Value key, S shape)QTreegetTree()booleanisEmpty()booleanisResident()booleanisTransient()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()QTreeMapView<S>load()voidloadAsync(swim.concurrent.Cont<QTreeMapView<S>> cont)swim.structure.Valuemove(swim.structure.Value key, S oldShape, S newShape, swim.structure.Value newValue)swim.structure.Valueput(swim.structure.Value key, S shape, swim.structure.Value newValue)swim.structure.Valueremove(swim.structure.Value key, S shape)swim.math.Z2Form<S>shapeForm()intsize()<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
-
getTree
public QTree getTree()
-
shapeForm
public swim.math.Z2Form<S> shapeForm()
-
loadAsync
public void loadAsync(swim.concurrent.Cont<QTreeMapView<S>> cont)
-
load
public QTreeMapView<S> load() throws InterruptedException
- Throws:
InterruptedException
-
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)
-
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>
-
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 value)
- 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>
-
-