public interface ElementUpdater<T>
Instances of this interface are passed to visitors of SpaceBase
queries and joins that allow modifications to the found elements.
Modifier and Type | Method and Description |
---|---|
void |
delete()
Deletes the element from the SpaceBase store.
|
T |
elem()
Returns the element represented by this updater.
|
SpatialToken |
token()
Returns the
SpatialToken representing this element, that can be saved and used later in updates and deletes. |
void |
update(AABB newAABB)
Updates the element in the SpaceBase store.
|
T elem()
Returns the element represented by this updater.
SpatialToken token()
Returns the SpatialToken
representing this element, that can be saved and used later in updates and deletes.
SpatialToken
representing this element.void delete()
Deletes the element from the SpaceBase store.
void update(AABB newAABB)
Updates the element in the SpaceBase store. The bounding-box may shrink, expand or move, provided that the new bounds lie within the spatial region defined by the BoundedSpatialQuery
passed to the query/transaction method.
The aabb argument is copied by SpaceBase, so it may be modified by the user after passing it to this method.
newAABB
- The element’s new bounding-box.IllegalArgumentException
- if the bounds are null, invalid, or lie outside the BoundedSpatialQuery
passed to the query/transaction method.