java.lang.Object
swim.spatial.SpatialValueMap<K,S,V>
swim.store.SpatialDataView<K,S,V>
- All Implemented Interfaces:
Iterable<swim.spatial.SpatialMap.Entry<K,,S, V>> swim.api.data.SpatialData<K,,S, V> swim.spatial.SpatialMap<K,,S, V> DataContext,SpatialDataContext<S>
public class SpatialDataView<K,S,V>
extends swim.spatial.SpatialValueMap<K,S,V>
implements swim.api.data.SpatialData<K,S,V>, SpatialDataContext<S>
-
Nested Class Summary
-
Field Summary
Fields inherited from class swim.spatial.SpatialValueMap
inner, keyForm, valueForm -
Constructor Summary
ConstructorsConstructorDescriptionSpatialDataView(SpatialDataBinding<S> dataBinding, swim.structure.Form<K> keyForm, swim.structure.Form<V> valueForm) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidvoiddidClear()voidvoiddidMove(swim.structure.Value key, long newX, long newY, swim.structure.Value newValue, long oldX, long oldY, swim.structure.Value oldValue) voiddidRemove(swim.structure.Value key, long x, long y, swim.structure.Value oldValue) voiddidUpdate(swim.structure.Value key, long x, long y, swim.structure.Value newValue, swim.structure.Value oldValue) booleanisResident(boolean isResident) booleanisTransient(boolean isTransient) <K2> SpatialDataView<K2,S, V> <K2> SpatialDataView<K2,S, V> keyForm(swim.structure.Form<K2> keyForm) swim.structure.Valuename()swim.math.Z2Form<S>snapshot()<V2> SpatialDataView<K,S, V2> valueClass(Class<V2> valueClass) <V2> SpatialDataView<K,S, V2> valueForm(swim.structure.Form<V2> valueForm) Methods inherited from class swim.spatial.SpatialValueMap
clear, containsKey, containsKey, containsValue, equals, get, get, hashCode, inner, isEmpty, iterator, iterator, keyForm, keyIterator, move, put, remove, size, toString, valueForm, valueIteratorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface swim.api.data.SpatialData
keyForm, valueFormMethods inherited from interface swim.spatial.SpatialMap
clear, containsKey, containsKey, containsValue, get, get, isEmpty, iterator, keyIterator, move, put, remove, size, valueIterator
-
Constructor Details
-
SpatialDataView
public SpatialDataView(SpatialDataBinding<S> dataBinding, swim.structure.Form<K> keyForm, swim.structure.Form<V> valueForm)
-
-
Method Details
-
dataBinding
-
name
public swim.structure.Value name() -
keyForm
-
keyClass
-
shapeForm
-
valueForm
-
valueClass
-
isResident
public boolean isResident() -
isResident
-
isTransient
public boolean isTransient() -
isTransient
-
snapshot
-
close
public void close() -
didChange
public void didChange()- Specified by:
didChangein interfaceDataContext
-
didCommit
public void didCommit()- Specified by:
didCommitin interfaceDataContext
-
didUpdate
public void didUpdate(swim.structure.Value key, long x, long y, swim.structure.Value newValue, swim.structure.Value oldValue) - Specified by:
didUpdatein interfaceSpatialDataContext<K>
-
didMove
public void didMove(swim.structure.Value key, long newX, long newY, swim.structure.Value newValue, long oldX, long oldY, swim.structure.Value oldValue) - Specified by:
didMovein interfaceSpatialDataContext<K>
-
didRemove
public void didRemove(swim.structure.Value key, long x, long y, swim.structure.Value oldValue) - Specified by:
didRemovein interfaceSpatialDataContext<K>
-
didClear
public void didClear()- Specified by:
didClearin interfaceSpatialDataContext<K>
-