V
- the value classpublic 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.MapBuilder<M extends MVMap<K,V>,K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
root, store, writeVersion
Constructor and Description |
---|
MVRTreeMap(int dimensions,
DataType valueType) |
Modifier and Type | Method and Description |
---|---|
void |
add(SpatialKey key,
V value)
Add a given key-value pair.
|
void |
addNodeKeys(ArrayList<SpatialKey> list,
Page p)
Add all node keys (including internal bounds) to the given list.
|
static <V> MVRTreeMap<V> |
create(int dimensions,
DataType valueType)
Create a new map with the given dimensions and value type.
|
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(Object key)
Get a value.
|
protected Object |
get(Page p,
Object key)
Get the object for the given key.
|
protected int |
getChildPageCount(Page p)
Get the child page count for this page.
|
String |
getType()
Get the map type.
|
boolean |
isQuadraticSplit() |
V |
put(SpatialKey key,
V value)
Add or replace a key-value pair.
|
protected Object |
remove(Page p,
long writeVersion,
Object key)
Remove a key-value pair.
|
void |
setQuadraticSplit(boolean quadraticSplit) |
areValuesEqual, beforeWrite, binarySearch, binarySearchPage, ceilingKey, clear, containsKey, cursor, entrySet, equals, firstKey, floorKey, getCreateVersion, getFirstLast, getId, getKey, getKeyIndex, getKeyType, getMinMax, getName, getRoot, getStore, getValueType, getVersion, hashCode, higherKey, init, isClosed, isEmpty, isReadOnly, isVolatile, keyIterator, keyList, keySet, lastKey, lowerKey, newRoot, openVersion, put, putIfAbsent, remove, remove, removePage, replace, replace, setVolatile, size, sizeAsLong, splitRootIfNeeded, toString
clone, containsValue, putAll, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
containsValue, putAll, values
public MVRTreeMap(int dimensions, DataType valueType)
public static <V> MVRTreeMap<V> create(int dimensions, DataType valueType)
V
- the value typedimensions
- the number of dimensionsvalueType
- the value typepublic V get(Object key)
MVMap
get
in interface Map<SpatialKey,V>
get
in class MVMap<SpatialKey,V>
key
- the keypublic MVRTreeMap.RTreeCursor findIntersectingKeys(SpatialKey x)
x
- the rectanglepublic MVRTreeMap.RTreeCursor findContainedKeys(SpatialKey x)
x
- the rectangleprotected Object get(Page p, Object key)
p
- the pagekey
- the keyprotected Object remove(Page p, long writeVersion, Object key)
MVMap
remove
in class MVMap<SpatialKey,V>
p
- the page (may not be null)writeVersion
- the write versionkey
- the keypublic V put(SpatialKey key, V value)
MVMap
put
in interface 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(ArrayList<SpatialKey> list, Page p)
list
- the listp
- the root pagepublic boolean isQuadraticSplit()
public void setQuadraticSplit(boolean quadraticSplit)
protected int getChildPageCount(Page p)
MVMap
getChildPageCount
in class MVMap<SpatialKey,V>
p
- the pageCopyright © 2017 JBoss by Red Hat. All rights reserved.