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
ConstructorsConstructorDescriptionSpatialDataView
(SpatialDataBinding<S> dataBinding, Form<K> keyForm, Form<V> valueForm) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
void
didClear()
void
void
void
void
boolean
isResident
(boolean isResident) boolean
isTransient
(boolean isTransient) <K2> SpatialDataView<K2,
S, V> <K2> SpatialDataView<K2,
S, V> name()
SpatialMap<K,
S, V> snapshot()
<V2> SpatialDataView<K,
S, V2> valueClass
(Class<V2> valueClass) <V2> SpatialDataView<K,
S, V2> 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
-
Constructor Details
-
SpatialDataView
-
-
Method Details
-
dataBinding
-
name
- Specified by:
name
in interfaceSpatialData<K,
S, V>
-
keyForm
- Specified by:
keyForm
in interfaceSpatialData<K,
S, V> - Overrides:
keyForm
in classSpatialValueMap<K,
S, V>
-
keyClass
- Specified by:
keyClass
in interfaceSpatialData<K,
S, V> - Overrides:
keyClass
in classSpatialValueMap<K,
S, V>
-
shapeForm
- Specified by:
shapeForm
in interfaceSpatialData<K,
S, V>
-
valueForm
- Specified by:
valueForm
in interfaceSpatialData<K,
S, V> - Overrides:
valueForm
in classSpatialValueMap<K,
S, V>
-
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
- Specified by:
isResident
in interfaceSpatialData<K,
S, V>
-
isTransient
public boolean isTransient()- Specified by:
isTransient
in interfaceSpatialData<K,
S, V>
-
isTransient
- Specified by:
isTransient
in interfaceSpatialData<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
- 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
- Specified by:
didRemove
in interfaceSpatialDataContext<K>
-
didClear
public void didClear()- Specified by:
didClear
in interfaceSpatialDataContext<K>
-