V - the value classpublic final class MVRTreeMap<V> extends MVMap<SpatialKey,V>
| Modifier and Type | Class and Description |
|---|---|
static class |
MVRTreeMap.Builder<V>
A builder for this class.
|
static class |
MVRTreeMap.RTreeCursor
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) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(SpatialKey key,
V value)
Add a given key-value pair.
|
void |
addNodeKeys(java.util.ArrayList<SpatialKey> list,
Page p)
Add all node keys (including internal bounds) to the given list.
|
MVRTreeMap<V> |
cloneIt()
Clone the current map.
|
MVRTreeMap.RTreeCursor |
findContainedKeys(SpatialKey x)
Iterate over all keys that are fully contained within the given
rectangle.
|
MVRTreeMap.RTreeCursor |
findIntersectingKeys(SpatialKey x)
Iterate over all keys that have an intersection with the given rectangle.
|
V |
get(Page p,
java.lang.Object key)
Get the object for the given key.
|
protected int |
getChildPageCount(Page p)
Get the child page count for this page.
|
java.lang.String |
getType()
Get the map type.
|
boolean |
isQuadraticSplit() |
V |
operate(SpatialKey key,
V value,
MVMap.DecisionMaker<? super V> decisionMaker)
Add, replace or remove a key-value pair.
|
V |
put(SpatialKey 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, entrySet, equals, firstKey, floorKey, flushAndGetRoot, get, getCreateVersion, getId, getKey, getKeyIndex, getKeyType, getName, getRoot, getRootPage, getStore, getValueType, getVersion, hashCode, higherKey, isClosed, isEmpty, isReadOnly, isVolatile, keyIterator, keyList, keySet, lastKey, lowerKey, openVersion, putIfAbsent, remove, removePage, replace, replace, setVolatile, size, sizeAsLong, toString, trimLast, updateRootpublic MVRTreeMap(java.util.Map<java.lang.String,java.lang.Object> config)
public MVRTreeMap<V> cloneIt()
MVMapcloneIt in class MVMap<SpatialKey,V>public MVRTreeMap.RTreeCursor findIntersectingKeys(SpatialKey x)
x - the rectanglepublic MVRTreeMap.RTreeCursor findContainedKeys(SpatialKey x)
x - the rectanglepublic V get(Page p, java.lang.Object key)
get in class MVMap<SpatialKey,V>p - the pagekey - the keypublic V remove(java.lang.Object key)
remove in interface java.util.Map<SpatialKey,V>remove in class MVMap<SpatialKey,V>key - the key (may not be null)public V operate(SpatialKey key, V value, MVMap.DecisionMaker<? super V> decisionMaker)
MVMapoperate in class MVMap<SpatialKey,V>key - the key (may not be null)value - new value, it may be null when removal is intendeddecisionMaker - command object to make choices during transaction.public V put(SpatialKey key, V value)
MVMapput in interface java.util.Map<SpatialKey,V>put in class MVMap<SpatialKey,V>key - the key (may not be null)value - the value (may not be null)public void add(SpatialKey key, V value)
key - the keyvalue - the valuepublic void addNodeKeys(java.util.ArrayList<SpatialKey> list, Page p)
list - the listp - the root pagepublic boolean isQuadraticSplit()
public void setQuadraticSplit(boolean quadraticSplit)
protected int getChildPageCount(Page p)
MVMapgetChildPageCount in class MVMap<SpatialKey,V>p - the pagepublic java.lang.String getType()
MVMapgetType in class MVMap<SpatialKey,V>