V - the value classpublic class MVRTreeMap<V> extends MVMap<SpatialKey,V>
| 限定符和类型 | 类和说明 |
|---|---|
static class |
MVRTreeMap.Builder<V>
A builder for this class.
|
static class |
MVRTreeMap.RTreeCursor
A cursor to iterate over a subset of the keys.
|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>root, store, writeVersion| 构造器和说明 |
|---|
MVRTreeMap(int dimensions,
DataType valueType) |
| 限定符和类型 | 方法和说明 |
|---|---|
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, toStringclone, containsValue, putAll, valuescompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAllcontainsValue, putAll, valuespublic 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)
MVMapget 在接口中 Map<SpatialKey,V>get 在类中 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)
MVMapremove 在类中 MVMap<SpatialKey,V>p - the page (may not be null)writeVersion - the write versionkey - the keypublic V put(SpatialKey key, V value)
MVMapput 在接口中 Map<SpatialKey,V>put 在类中 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)
MVMapgetChildPageCount 在类中 MVMap<SpatialKey,V>p - the pageCopyright © 2017. All rights reserved.