| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| private static class | |
| private static class | |
| public abstract static class |
| Modifier and Type | Field and Description |
|---|---|
| private final SpatialDataType | keyType
Hides org. |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addNodeKeys(ArrayList<Spatial>
the list list, Page<Spatial, V> the root page p)Add all node keys (including internal bounds) to the given list. |
| public MVRTreeMap | |
| private boolean | |
| public MVRTreeMap. | Returns: the iteratorthe rectangle x)Iterate over all keys that are fully contained within the given rectangle. |
| public MVRTreeMap. | Returns: the iteratorthe rectangle x)Iterate over all keys that have an intersection with the given rectangle. |
| public V | Returns: the value, or null if not foundthe page p, Spatial the key key)Overrides org. Get the object for the given key. |
| private Spatial | |
| protected int | getChildPageCount(Page<Spatial, V>
the page p)Overrides org. Get the child page count for this page. |
| public String | |
| public boolean | |
| private static <V> void | |
| private Page | |
| public V | operate(Spatial
the key (may not be null) key, V new value, it may be null when removal is intended value, MVMap.command object to make choices during transaction. decisionMakerOverrides org. Add, replace or remove a key-value pair. |
| private V | operate(Page<Spatial, V> p, Spatial key, V value, MVMap.
|
| public V | put(Spatial
the key (may not be null) key, V the value (may not be null) value)Overrides org. Implements java. Add or replace a key-value pair. |
| public V | Returns: the old value if the key existed, or null otherwisethe key (may not be null) key)Overrides org. Implements java. Remove a key-value pair, if the key exists. |
| public void | |
| private Page | |
| private Page | |
| private Page |
| keyType | back to summary |
|---|---|
| private final SpatialDataType keyType Hides org. The spatial key type. | |
| quadraticSplit | back to summary |
|---|---|
| private boolean quadraticSplit | |
| MVRTreeMap | back to summary |
|---|---|
| public MVRTreeMap(Map<String, Object> config, SpatialDataType keyType, DataType<V> valueType) | |
| MVRTreeMap | back to summary |
|---|---|
| private MVRTreeMap(MVRTreeMap<V> source) | |
| add | back to summary |
|---|---|
| public void add(Spatial key, V value) Add a given key-value pair. The key should not exist (if it exists, the result is undefined).
| |
| addNodeKeys | back to summary |
|---|---|
| public void addNodeKeys(ArrayList<Spatial> list, Page<Spatial, V> p) Add all node keys (including internal bounds) to the given list. This is mainly used to visualize the internal splits. | |
| cloneIt | back to summary |
|---|---|
| public MVRTreeMap Overrides org. Doc from org. Clone the current map.
| |
| contains | back to summary |
|---|---|
| private boolean contains(Page<Spatial, V> p, int index, Spatial key) | |
| findContainedKeys | back to summary |
|---|---|
| public MVRTreeMap. Iterate over all keys that are fully contained within the given rectangle.
| |
| findIntersectingKeys | back to summary |
|---|---|
| public MVRTreeMap. Iterate over all keys that have an intersection with the given rectangle.
| |
| get | back to summary |
|---|---|
| public V get(Page<Spatial, V> p, Spatial key) Overrides org. Get the object for the given key. An exact match is required. | |
| getBounds | back to summary |
|---|---|
| private Spatial getBounds(Page<Spatial, V> x) | |
| getChildPageCount | back to summary |
|---|---|
| protected int getChildPageCount(Page<Spatial, V> p) Overrides org. Doc from org. Get the child page count for this page. This is to allow another map implementation to override the default, in case the last child is not to be used. | |
| getType | back to summary |
|---|---|
| public String getType() Overrides org. Doc from org. Get the map type. When opening an existing map, the map type must match. | |
| isQuadraticSplit | back to summary |
|---|---|
public boolean isQuadraticSplit()
| |
| move | back to summary |
|---|---|
| private static <V> void move(Page<Spatial, V> source, Page<Spatial, V> target, int sourceIndex) | |
| newPage | back to summary |
|---|---|
| private Page | |
| operate | back to summary |
|---|---|
| public V operate(Spatial key, V value, MVMap. Overrides org. Doc from org. Add, replace or remove a key-value pair.
| |
| operate | back to summary |
|---|---|
| private V operate(Page<Spatial, V> p, Spatial key, V value, MVMap. | |
| put | back to summary |
|---|---|
| public V put(Spatial key, V value) Overrides org. Implements java. Doc from org. Add or replace a key-value pair. | |
| remove | back to summary |
|---|---|
| public V remove(Object key) Overrides org. Implements java. Remove a key-value pair, if the key exists. | |
| setQuadraticSplit | back to summary |
|---|---|
| public void setQuadraticSplit(boolean quadraticSplit) | |
| split | back to summary |
|---|---|
| private Page | |
| splitLinear | back to summary |
|---|---|
| private Page | |
| splitQuadratic | back to summary |
|---|---|
| private Page | |
| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public MVRTreeMap | create(Map<String, Object>
config map config)Implements abstract org. Create map from config. |
| public MVRTreeMap. | |
| public MVRTreeMap. | Returns: thisthe key type valueType)Overrides org. Set the key data type. |
| dimensions | back to summary |
|---|---|
| private int dimensions | |
| Builder | back to summary |
|---|---|
| public Builder() Create a new builder for maps with 2 dimensions. | |
| create | back to summary |
|---|---|
| public MVRTreeMap Implements abstract org. Doc from org. Create map from config.
| |
| dimensions | back to summary |
|---|---|
| public MVRTreeMap. Set the dimensions.
| |
| valueType | back to summary |
|---|---|
| public MVRTreeMap. Overrides org. Set the key data type.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final SpatialDataType |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | check(boolean
if the key is from a leaf page leaf, Spatial the stored key key, Spatial the user-supplied test key test)Implements abstract org. Check a given key. |
| keyType | back to summary |
|---|---|
| private final SpatialDataType keyType | |
| ContainsRTreeCursor | back to summary |
|---|---|
| public ContainsRTreeCursor(Page<Spatial, V> root, Spatial filter, SpatialDataType keyType) | |
| check | back to summary |
|---|---|
| protected boolean check(boolean leaf, Spatial key, Spatial test) Implements abstract org. Doc from org. Check a given key. | |
| Modifier and Type | Field and Description |
|---|---|
| private final SpatialDataType |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | check(boolean
if the key is from a leaf page leaf, Spatial the stored key key, Spatial the user-supplied test key test)Implements abstract org. Check a given key. |
| keyType | back to summary |
|---|---|
| private final SpatialDataType keyType | |
| IntersectsRTreeCursor | back to summary |
|---|---|
| public IntersectsRTreeCursor(Page<Spatial, V> root, Spatial filter, SpatialDataType keyType) | |
| check | back to summary |
|---|---|
| protected boolean check(boolean leaf, Spatial key, Spatial test) Implements abstract org. Doc from org. Check a given key. | |
| Modifier and Type | Field and Description |
|---|---|
| private Spatial | |
| private final Spatial | |
| private boolean | |
| private CursorPos | |
| private final Page |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract boolean | |
| pack-priv void | |
| public boolean | |
| public Spatial | |
| public void |
| current | back to summary |
|---|---|
| private Spatial current | |
| filter | back to summary |
|---|---|
| private final Spatial filter | |
| initialized | back to summary |
|---|---|
| private boolean initialized | |
| pos | back to summary |
|---|---|
| private CursorPos<Spatial, V> pos | |
| root | back to summary |
|---|---|
| private final Page<Spatial, V> root | |
| RTreeCursor | back to summary |
|---|---|
| protected RTreeCursor(Page<Spatial, V> root, Spatial filter) | |
| check | back to summary |
|---|---|
| protected abstract boolean check(boolean leaf, Spatial key, Spatial test) Check a given key. | |
| fetchNext | back to summary |
|---|---|
| pack-priv void fetchNext() Fetch the next entry if there is one. | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Spatial next() Implements java. Doc from java. Returns the next element in the iteration. | |
| skip | back to summary |
|---|---|
| public void skip(long n) Skip over that many entries. This method is relatively fast (for this map implementation) even if many entries need to be skipped.
| |