Uses of Class
org.h2.mvstore.Page
-
Packages that use Page Package Description org.h2.mvstore A persistent storage for tree maps.org.h2.mvstore.db Helper classes to use the MVStore in the H2 database.org.h2.mvstore.rtree An R-tree implementation -
-
Uses of Page in org.h2.mvstore
Subclasses of Page in org.h2.mvstore Modifier and Type Class Description private static class
Page.IncompleteNonLeaf<K,V>
private static class
Page.Leaf<K,V>
private static class
Page.NonLeaf<K,V>
Fields in org.h2.mvstore declared as Page Modifier and Type Field Description private Page<K,V>
Cursor. lastPage
Page<K,V>
CursorPos. page
The page at the current level.private Page<K,V>
Page.PageReference. page
The page, if in memory, or null.Page<K,V>
RootReference. root
The root page.Fields in org.h2.mvstore with type parameters of type Page Modifier and Type Field Description private CacheLongKeyLIRS<Page<?,?>>
MVStore. cache
The page cache.private static java.util.concurrent.atomic.AtomicLongFieldUpdater<Page>
Page. posUpdater
Updater for pos field, which can be updated when page is saved, but can be concurrently marked as removedMethods in org.h2.mvstore that return Page Modifier and Type Method Description protected Page<K,V>
Page. clone()
Page<K,V>
Page. copy()
Create a copy of this page.(package private) abstract Page<K,V>
Page. copy(MVMap<K,V> map, boolean eraseChildrenRefs)
Create a copy of this page with potentially different owning map.Page<K,V>
Page.Leaf. copy(MVMap<K,V> map, boolean eraseChildrenRefs)
Page<K,V>
Page.NonLeaf. copy(MVMap<K,V> map, boolean eraseChildrenRefs)
protected Page<K,V>
MVMap. createEmptyLeaf()
Create empty leaf node page.(package private) static <K,V>
Page<K,V>Page. createEmptyLeaf(MVMap<K,V> map)
Create a new, empty leaf page.protected Page<K,V>
MVMap. createEmptyNode()
Create empty internal node page.(package private) static <K,V>
Page<K,V>Page. createEmptyNode(MVMap<K,V> map)
Create a new, empty internal node page.(package private) static <K,V>
Page<K,V>Page. createLeaf(MVMap<K,V> map, K[] keys, V[] values, int memory)
Create a new leaf page.static <K,V>
Page<K,V>Page. createNode(MVMap<K,V> map, K[] keys, Page.PageReference<K,V>[] children, long totalCount, int memory)
Create a new non-leaf page.abstract Page<K,V>
Page. getChildPage(int index)
Get the child page at the given index.Page<K,V>
Page.Leaf. getChildPage(int index)
Page<K,V>
Page.NonLeaf. getChildPage(int index)
(package private) Page<K,V>
Cursor. getPage()
Get the page where last retrieved key is located.Page<K,V>
Page.PageReference. getPage()
Page<K,V>
MVMap. getRootPage()
The current root page (may not be null).(package private) static <K,V>
Page<K,V>Page. read(java.nio.ByteBuffer buff, long pos, MVMap<K,V> map)
Read a page.private Page<K,V>
MVMap. readOrCreateRootPage(long rootPos)
(package private) Page<K,V>
MVMap. readPage(long pos)
Read a page.(package private) <K,V>
Page<K,V>MVStore. readPage(MVMap<K,V> map, long pos)
Read a page.private <K,V>
Page<K,V>MVStore. readPageFromCache(long pos)
private static <K,V>
Page<K,V>MVMap. replacePage(CursorPos<K,V> path, Page<K,V> replacement, MVMap.IntValueHolder unsavedMemoryHolder)
Page<K,V>
Page.Leaf. split(int at)
Page<K,V>
Page.NonLeaf. split(int at)
(package private) abstract Page<K,V>
Page. split(int at)
Split the page.Methods in org.h2.mvstore that return types with arguments of type Page Modifier and Type Method Description private java.util.ArrayList<Page<?,?>>
MVStore. collectChangedMapRoots(long version)
CacheLongKeyLIRS<Page<?,?>>
MVStore. getCache()
Get the cache.Methods in org.h2.mvstore with parameters of type Page Modifier and Type Method Description (package private) void
MVStore. cachePage(Page<?,?> page)
Put the page in the cache.private void
MVMap. copy(Page<K,V> source, Page<K,V> parent, int index)
V
MVMap. get(Page<K,V> p, K key)
Get the value for the given key from a snapshot, or null if not found.(package private) static <K,V>
VPage. get(Page<K,V> p, K key)
Get the value for the given key, or null if not found.protected int
MVMap. getChildPageCount(Page<K,V> p)
Get the child page count for this page.private K
MVMap. getFirstLast(Page<K,V> p, boolean first)
private K
MVMap. getMinMax(Page<K,V> p, K key, boolean min, boolean excluding)
abstract void
Page. insertNode(int index, K key, Page<K,V> childPage)
Insert a child page into this node.void
Page.Leaf. insertNode(int index, K key, Page<K,V> childPage)
void
Page.NonLeaf. insertNode(int index, K key, Page<K,V> childPage)
private MVMap<K,V>
MVMap. openReadOnly(Page<K,V> root, long version)
private static <K,V>
Page<K,V>MVMap. replacePage(CursorPos<K,V> path, Page<K,V> replacement, MVMap.IntValueHolder unsavedMemoryHolder)
void
Page.Leaf. setChild(int index, Page<K,V> c)
void
Page.NonLeaf. setChild(int index, Page<K,V> c)
abstract void
Page. setChild(int index, Page<K,V> c)
Replace the child page.(package private) void
MVMap. setInitialRoot(Page<K,V> rootPage, long version)
Set the initial root.(package private) static <K,V>
CursorPos<K,V>Cursor. traverseDown(Page<K,V> page, K key, boolean reverse)
Fetch the next entry that is equal or larger than the given key, starting from the given page.(package private) static <K,V>
CursorPos<K,V>CursorPos. traverseDown(Page<K,V> page, K key)
Searches for a given key and creates a breadcrumb trail through a B-tree rooted at a given Page.protected RootReference<K,V>
MVMap. unlockRoot(Page<K,V> newRootPage)
Unlock the root page.private RootReference<K,V>
MVMap. unlockRoot(Page<K,V> newRootPage, int appendCounter)
(package private) RootReference<K,V>
RootReference. updatePageAndLockedStatus(Page<K,V> page, boolean keepLocked, int appendCounter)
Update the page, possibly keeping it locked.protected static <K,V>
booleanMVMap. updateRoot(RootReference<K,V> expectedRootReference, Page<K,V> newRootPage, int attemptUpdateCounter)
Use the new root page from now on.(package private) RootReference<K,V>
RootReference. updateRootPage(Page<K,V> newRootPage, long attemptCounter)
Try to unlock.private static <K,V>
intCursor. upperBound(Page<K,V> page)
Method parameters in org.h2.mvstore with type arguments of type Page Modifier and Type Method Description private void
MVStore. serializeAndStore(boolean syncRun, long reservedLow, java.util.function.Supplier<java.lang.Long> reservedHighSupplier, java.util.ArrayList<Page<?,?>> changed, long time, long version)
private void
MVStore. serializeToBuffer(WriteBuffer buff, java.util.ArrayList<Page<?,?>> changed, Chunk c, long reservedLow, java.util.function.Supplier<java.lang.Long> reservedHighSupplier)
private void
MVStore. storeBuffer(Chunk c, WriteBuffer buff, java.util.ArrayList<Page<?,?>> changed)
Constructors in org.h2.mvstore with parameters of type Page Constructor Description CursorPos(Page<K,V> page, int index, CursorPos<K,V> parent)
Page(MVMap<K,V> map, Page<K,V> source)
PageReference(Page<K,V> page)
PageReference(Page<K,V> page, long pos, long count)
RootReference(Page<K,V> root, long version)
RootReference(RootReference<K,V> r, Page<K,V> root, boolean keepLocked, int appendCounter)
RootReference(RootReference<K,V> r, Page<K,V> root, long updateAttemptCounter)
-
Uses of Page in org.h2.mvstore.db
Constructors in org.h2.mvstore.db with parameters of type Page Constructor Description FindBoundsCursor(Page<Spatial,VersionedValue<Value>> root, Spatial filter, SessionLocal session, TransactionMap<Spatial,Value> map, int columnId)
-
Uses of Page in org.h2.mvstore.rtree
Fields in org.h2.mvstore.rtree declared as Page Modifier and Type Field Description private Page<Spatial,V>
MVRTreeMap.RTreeCursor. root
Methods in org.h2.mvstore.rtree that return Page Modifier and Type Method Description private Page<Spatial,V>
MVRTreeMap. newPage(boolean leaf)
private Page<Spatial,V>
MVRTreeMap. split(Page<Spatial,V> p)
private Page<Spatial,V>
MVRTreeMap. splitLinear(Page<Spatial,V> p)
private Page<Spatial,V>
MVRTreeMap. splitQuadratic(Page<Spatial,V> p)
Methods in org.h2.mvstore.rtree with parameters of type Page Modifier and Type Method Description void
MVRTreeMap. addNodeKeys(java.util.ArrayList<Spatial> list, Page<Spatial,V> p)
Add all node keys (including internal bounds) to the given list.private boolean
MVRTreeMap. contains(Page<Spatial,V> p, int index, java.lang.Object key)
V
MVRTreeMap. get(Page<Spatial,V> p, Spatial key)
Get the object for the given key.private Spatial
MVRTreeMap. getBounds(Page<Spatial,V> x)
protected int
MVRTreeMap. getChildPageCount(Page<Spatial,V> p)
private static <V> void
MVRTreeMap. move(Page<Spatial,V> source, Page<Spatial,V> target, int sourceIndex)
private V
MVRTreeMap. operate(Page<Spatial,V> p, Spatial key, V value, MVMap.DecisionMaker<? super V> decisionMaker, java.util.Collection<Page<Spatial,V>> removedPages)
private Page<Spatial,V>
MVRTreeMap. split(Page<Spatial,V> p)
private Page<Spatial,V>
MVRTreeMap. splitLinear(Page<Spatial,V> p)
private Page<Spatial,V>
MVRTreeMap. splitQuadratic(Page<Spatial,V> p)
Method parameters in org.h2.mvstore.rtree with type arguments of type Page Modifier and Type Method Description private V
MVRTreeMap. operate(Page<Spatial,V> p, Spatial key, V value, MVMap.DecisionMaker<? super V> decisionMaker, java.util.Collection<Page<Spatial,V>> removedPages)
Constructors in org.h2.mvstore.rtree with parameters of type Page Constructor Description ContainsRTreeCursor(Page<Spatial,V> root, Spatial filter, SpatialDataType keyType)
IntersectsRTreeCursor(Page<Spatial,V> root, Spatial filter, SpatialDataType keyType)
RTreeCursor(Page<Spatial,V> root, Spatial filter)
-