- 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>
-
-
Constructor Summary
Constructors Constructor Description SpatialDataView(SpatialDataBinding<S> dataBinding, swim.structure.Form<K> keyForm, swim.structure.Form<V> valueForm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()SpatialDataBinding<S>dataBinding()voiddidChange()voiddidClear()voiddidCommit()voiddidMove(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()SpatialDataView<K,S,V>isResident(boolean isResident)booleanisTransient()SpatialDataView<K,S,V>isTransient(boolean isTransient)<K2> SpatialDataView<K2,S,V>keyClass(Class<K2> keyClass)<K2> SpatialDataView<K2,S,V>keyForm(swim.structure.Form<K2> keyForm)swim.structure.Valuename()swim.math.Z2Form<S>shapeForm()swim.spatial.SpatialMap<K,S,V>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, valueIterator
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Constructor Detail
-
SpatialDataView
public SpatialDataView(SpatialDataBinding<S> dataBinding, swim.structure.Form<K> keyForm, swim.structure.Form<V> valueForm)
-
-
Method Detail
-
dataBinding
public SpatialDataBinding<S> dataBinding()
-
name
public swim.structure.Value name()
-
keyForm
public <K2> SpatialDataView<K2,S,V> keyForm(swim.structure.Form<K2> keyForm)
-
keyClass
public <K2> SpatialDataView<K2,S,V> keyClass(Class<K2> keyClass)
-
shapeForm
public swim.math.Z2Form<S> shapeForm()
-
valueForm
public <V2> SpatialDataView<K,S,V2> valueForm(swim.structure.Form<V2> valueForm)
-
valueClass
public <V2> SpatialDataView<K,S,V2> valueClass(Class<V2> valueClass)
-
isResident
public boolean isResident()
-
isResident
public SpatialDataView<K,S,V> isResident(boolean isResident)
-
isTransient
public boolean isTransient()
-
isTransient
public SpatialDataView<K,S,V> isTransient(boolean isTransient)
-
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>
-
-