- java.lang.Object
-
- swim.spatial.SpatialValueMap<K,S,V>
-
- swim.store.SpatialDataView<K,S,V>
-
- All Implemented Interfaces:
Iterable<SpatialMap.Entry<K,S,V>>
,SpatialData<K,S,V>
,SpatialMap<K,S,V>
,DataContext
,SpatialDataContext<S>
public class SpatialDataView<K,S,V> extends SpatialValueMap<K,S,V> implements SpatialData<K,S,V>, SpatialDataContext<S>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface swim.spatial.SpatialMap
SpatialMap.Entry<K,S,V>, SpatialMap.SimpleEntry<K,S,V>
-
-
Field Summary
-
Fields inherited from class swim.spatial.SpatialValueMap
inner, keyForm, valueForm
-
-
Constructor Summary
Constructors Constructor Description SpatialDataView(SpatialDataBinding<S> dataBinding, Form<K> keyForm, Form<V> valueForm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
SpatialDataBinding<S>
dataBinding()
void
didChange()
void
didClear()
void
didCommit()
void
didMove(Value key, long newX, long newY, Value newValue, long oldX, long oldY, Value oldValue)
void
didRemove(Value key, long x, long y, Value oldValue)
void
didUpdate(Value key, long x, long y, Value newValue, Value oldValue)
boolean
isResident()
SpatialDataView<K,S,V>
isResident(boolean isResident)
boolean
isTransient()
SpatialDataView<K,S,V>
isTransient(boolean isTransient)
<K2> SpatialDataView<K2,S,V>
keyClass(Class<K2> keyClass)
<K2> SpatialDataView<K2,S,V>
keyForm(Form<K2> keyForm)
Value
name()
Z2Form<S>
shapeForm()
SpatialMap<K,S,V>
snapshot()
<V2> SpatialDataView<K,S,V2>
valueClass(Class<V2> valueClass)
<V2> SpatialDataView<K,S,V2>
valueForm(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
-
Methods inherited from interface swim.api.data.SpatialData
keyForm, valueForm
-
Methods inherited from interface swim.spatial.SpatialMap
clear, containsKey, containsKey, containsValue, get, get, isEmpty, iterator, keyIterator, move, put, remove, size, valueIterator
-
-
-
-
Method Detail
-
dataBinding
public SpatialDataBinding<S> dataBinding()
-
keyForm
public <K2> SpatialDataView<K2,S,V> keyForm(Form<K2> keyForm)
- Specified by:
keyForm
in interfaceSpatialData<K,S,V>
- Overrides:
keyForm
in classSpatialValueMap<K,S,V>
-
keyClass
public <K2> SpatialDataView<K2,S,V> keyClass(Class<K2> keyClass)
- Specified by:
keyClass
in interfaceSpatialData<K,S,V>
- Overrides:
keyClass
in classSpatialValueMap<K,S,V>
-
valueForm
public <V2> SpatialDataView<K,S,V2> valueForm(Form<V2> valueForm)
- Specified by:
valueForm
in interfaceSpatialData<K,S,V>
- Overrides:
valueForm
in classSpatialValueMap<K,S,V>
-
valueClass
public <V2> SpatialDataView<K,S,V2> valueClass(Class<V2> valueClass)
- Specified by:
valueClass
in interfaceSpatialData<K,S,V>
- Overrides:
valueClass
in classSpatialValueMap<K,S,V>
-
isResident
public boolean isResident()
- Specified by:
isResident
in interfaceSpatialData<K,S,V>
-
isResident
public SpatialDataView<K,S,V> isResident(boolean isResident)
- Specified by:
isResident
in interfaceSpatialData<K,S,V>
-
isTransient
public boolean isTransient()
- Specified by:
isTransient
in interfaceSpatialData<K,S,V>
-
isTransient
public SpatialDataView<K,S,V> isTransient(boolean isTransient)
- Specified by:
isTransient
in interfaceSpatialData<K,S,V>
-
snapshot
public SpatialMap<K,S,V> snapshot()
- Specified by:
snapshot
in interfaceSpatialData<K,S,V>
-
close
public void close()
- Specified by:
close
in interfaceSpatialData<K,S,V>
-
didChange
public void didChange()
- Specified by:
didChange
in interfaceDataContext
-
didCommit
public void didCommit()
- Specified by:
didCommit
in interfaceDataContext
-
didUpdate
public void didUpdate(Value key, long x, long y, Value newValue, Value oldValue)
- Specified by:
didUpdate
in interfaceSpatialDataContext<K>
-
didMove
public void didMove(Value key, long newX, long newY, Value newValue, long oldX, long oldY, Value oldValue)
- Specified by:
didMove
in interfaceSpatialDataContext<K>
-
didRemove
public void didRemove(Value key, long x, long y, Value oldValue)
- Specified by:
didRemove
in interfaceSpatialDataContext<K>
-
didClear
public void didClear()
- Specified by:
didClear
in interfaceSpatialDataContext<K>
-
-