| Modifier and Type | Class and Description |
|---|---|
static class |
MVRTreeMap.Builder<V>
A builder for this class.
|
static class |
MVRTreeMap.RTreeCursor<V>
A cursor to iterate over a subset of the keys.
|
MVMap.BasicBuilder<M extends MVMap<K,V>,K,V>, MVMap.Decision, MVMap.DecisionMaker<V>, MVMap.MapBuilder<M extends MVMap<K,V>,K,V>| Constructor and Description |
|---|
MVRTreeMap(java.util.Map<java.lang.String,java.lang.Object> config,
SpatialDataType keyType,
DataType<V> valueType) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Spatial key,
V value)
Add a given key-value pair.
|
void |
addNodeKeys(java.util.ArrayList<Spatial> list,
Page<Spatial,V> p)
Add all node keys (including internal bounds) to the given list.
|
MVRTreeMap<V> |
cloneIt()
Clone the current map.
|
MVRTreeMap.RTreeCursor<V> |
findContainedKeys(Spatial x)
Iterate over all keys that are fully contained within the given
rectangle.
|
MVRTreeMap.RTreeCursor<V> |
findIntersectingKeys(Spatial x)
Iterate over all keys that have an intersection with the given rectangle.
|
V |
get(Page<Spatial,V> p,
Spatial key)
Get the object for the given key.
|
protected int |
getChildPageCount(Page<Spatial,V> p)
Get the child page count for this page.
|
java.lang.String |
getType()
Get the map type.
|
boolean |
isQuadraticSplit() |
V |
operate(Spatial key,
V value,
MVMap.DecisionMaker<? super V> decisionMaker)
Add, replace or remove a key-value pair.
|
V |
put(Spatial key,
V value)
Add or replace a key-value pair.
|
V |
remove(java.lang.Object key)
Remove a key-value pair, if the key exists.
|
void |
setQuadraticSplit(boolean quadraticSplit) |
append, asString, beforeWrite, ceilingKey, clear, containsKey, createEmptyLeaf, createEmptyNode, cursor, cursor, cursor, entrySet, equals, firstKey, floorKey, flushAndGetRoot, get, getId, getKey, getKeyIndex, getKeyType, getName, getRoot, getRootPage, getStore, getValueType, getVersion, hashCode, higherKey, higherKey, isClosed, isEmpty, isPersistent, isReadOnly, isVolatile, keyIterator, keyIteratorReverse, keyList, keySet, lastKey, lowerKey, lowerKey, openVersion, putIfAbsent, registerUnsavedMemory, remove, replace, replace, setVolatile, size, sizeAsLong, toString, trimLast, tryLock, unlockRoot, updateRootfinalize, getClass, notify, notifyAll, wait, wait, waitpublic MVRTreeMap(java.util.Map<java.lang.String,java.lang.Object> config,
SpatialDataType keyType,
DataType<V> valueType)
public MVRTreeMap<V> cloneIt()
MVMappublic MVRTreeMap.RTreeCursor<V> findIntersectingKeys(Spatial x)
x - the rectanglepublic MVRTreeMap.RTreeCursor<V> findContainedKeys(Spatial x)
x - the rectanglepublic V get(Page<Spatial,V> p, Spatial key)
public V remove(java.lang.Object key)
public V operate(Spatial key, V value, MVMap.DecisionMaker<? super V> decisionMaker)
MVMappublic V put(Spatial key, V value)
MVMappublic void add(Spatial key, V value)
key - the keyvalue - the valuepublic void addNodeKeys(java.util.ArrayList<Spatial> list, Page<Spatial,V> p)
list - the listp - the root pagepublic boolean isQuadraticSplit()
public void setQuadraticSplit(boolean quadraticSplit)
protected int getChildPageCount(Page<Spatial,V> p)
MVMapgetChildPageCount in class MVMap<Spatial,V>p - the page