|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.util.AbstractMap<K,V>
org.h2.dev.store.btree.MVMap<K,V>
org.h2.test.store.MVRTreeMap<K,V>
K - the key classV - the value classpublic class MVRTreeMap<K,V>
An r-tree implementation. It uses the quadratic split algorithm.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Field Summary |
|---|
| Fields inherited from class org.h2.dev.store.btree.MVMap |
|---|
root, store |
| Method Summary | |
|---|---|
void |
add(K key,
V value)
Add a given key-value pair. |
void |
addNodeKeys(java.util.ArrayList<K> list,
Page p)
Add all node keys (including internal bounds) to the given list. |
V |
get(java.lang.Object key)
Get a value. |
protected java.lang.Object |
get(Page p,
java.lang.Object key)
Get the object for the given key. |
protected Page |
getPage(K key)
Get the page for the given value. |
boolean |
isQuadraticSplit()
|
protected CursorPos |
min(Page p,
Cursor<K,V> cursor,
java.lang.Object key)
Go to the first element for the given key. |
protected java.lang.Object |
nextKey(CursorPos p,
Cursor<K,V> cursor)
Get the next key. |
V |
put(K key,
V value)
Add or replace a key-value pair. |
protected java.lang.Object |
remove(Page p,
long writeVersion,
java.lang.Object key)
Remove a key-value pair. |
void |
setQuadraticSplit(boolean quadraticSplit)
|
| Methods inherited from class org.h2.dev.store.btree.MVMap |
|---|
binarySearch, binarySearchPage, changeIterator, checkOpen, checkWrite, clear, close, containsKey, entrySet, equals, getRoot, getSize, hashCode, hasUnsavedChanges, isClosed, isReadOnly, keyIterator, keySet, openVersion, put, remove, removeMap, removePage, setReadOnly, setRoot, size, toString |
| Methods inherited from class java.util.AbstractMap |
|---|
clone, containsValue, isEmpty, putAll, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public V get(java.lang.Object key)
MVMap
get in interface java.util.Map<K,V>get in class MVMap<K,V>key - the key
protected java.lang.Object get(Page p,
java.lang.Object key)
p - the pagekey - the key
protected Page getPage(K key)
MVMap
getPage in class MVMap<K,V>key - the key
protected java.lang.Object remove(Page p,
long writeVersion,
java.lang.Object key)
MVMap
remove in class MVMap<K,V>p - the page (may not be null)writeVersion - the write versionkey - the key
public V put(K key,
V value)
MVMap
put in interface java.util.Map<K,V>put in class MVMap<K,V>key - the key (may not be null)value - the value (may not be null)
public void add(K key,
V value)
key - the keyvalue - the value
public void addNodeKeys(java.util.ArrayList<K> list,
Page p)
list - the listp - the root page
protected CursorPos min(Page p,
Cursor<K,V> cursor,
java.lang.Object key)
min in class MVMap<K,V>p - the current pagecursor - the cursorkey - the key
protected java.lang.Object nextKey(CursorPos p,
Cursor<K,V> cursor)
nextKey in class MVMap<K,V>p - the cursor positioncursor - the cursor
public boolean isQuadraticSplit()
public void setQuadraticSplit(boolean quadraticSplit)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||