Uses of Class
org.h2.mvstore.Page
Packages that use Page
Package
Description
A persistent storage for tree maps.
Helper classes to use the MVStore in the H2 database.
An R-tree implementation
-
Uses of Page in org.h2.mvstore
Subclasses of Page in org.h2.mvstoreModifier and TypeClassDescriptionprivate static classprivate static classPage.Leaf<K,V> private static classPage.NonLeaf<K,V> Fields in org.h2.mvstore declared as PageModifier and TypeFieldDescriptionCursor.lastPageCursorPos.pageThe page at the current level.Page.PageReference.pageThe page, if in memory, or null.RootReference.rootThe root page.Fields in org.h2.mvstore with type parameters of type PageModifier and TypeFieldDescriptionprivate final CacheLongKeyLIRS<Page<?, ?>> MVStore.cacheThe page cache.private static final AtomicLongFieldUpdater<Page> Page.posUpdaterUpdater for pos field, which can be updated when page is saved, but can be concurrently marked as removedMethods in org.h2.mvstore that return PageModifier and TypeMethodDescriptionPage.clone()Page.copy()Create a copy of this page.Create a copy of this page with potentially different owning map.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.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.Page.getChildPage(int index) Get the child page at the given index.Page.Leaf.getChildPage(int index) Page.NonLeaf.getChildPage(int index) Cursor.getPage()Get the page where last retrieved key is located.Page.PageReference.getPage()MVMap.getRootPage()The current root page (may not be null).(package private) static <K,V> Page <K, V> Page.read(ByteBuffer buff, long pos, MVMap<K, V> map) Read a page.MVMap.readOrCreateRootPage(long rootPos) MVMap.readPage(long pos) Read a page.(package private) <K,V> Page <K, V> 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.Leaf.split(int at) Page.NonLeaf.split(int at) Page.split(int at) Split the page.Methods in org.h2.mvstore that return types with arguments of type PageModifier and TypeMethodDescriptionMVStore.collectChangedMapRoots(long version) CacheLongKeyLIRS<Page<?, ?>> MVStore.getCache()Get the cache.Methods in org.h2.mvstore with parameters of type PageModifier and TypeMethodDescription(package private) voidPut the page in the cache.private voidGet the value for the given key from a snapshot, or null if not found.(package private) static <K,V> V Get the value for the given key, or null if not found.protected intMVMap.getChildPageCount(Page<K, V> p) Get the child page count for this page.private KMVMap.getFirstLast(Page<K, V> p, boolean first) private Kabstract voidPage.insertNode(int index, K key, Page<K, V> childPage) Insert a child page into this node.voidPage.Leaf.insertNode(int index, K key, Page<K, V> childPage) voidPage.NonLeaf.insertNode(int index, K key, Page<K, V> childPage) 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) voidvoidabstract voidReplace the child page.(package private) final voidMVMap.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> boolean MVMap.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> int Cursor.upperBound(Page<K, V> page) Method parameters in org.h2.mvstore with type arguments of type PageModifier and TypeMethodDescriptionprivate voidMVStore.serializeAndStore(boolean syncRun, long reservedLow, Supplier<Long> reservedHighSupplier, ArrayList<Page<?, ?>> changed, long time, long version) private voidMVStore.serializeToBuffer(WriteBuffer buff, ArrayList<Page<?, ?>> changed, Chunk c, long reservedLow, Supplier<Long> reservedHighSupplier) private voidMVStore.storeBuffer(Chunk c, WriteBuffer buff, ArrayList<Page<?, ?>> changed) Constructors in org.h2.mvstore with parameters of type PageModifierConstructorDescription(package private)PageReference(Page<K, V> page) privatePageReference(Page<K, V> page, long pos, long count) (package private)RootReference(Page<K, V> root, long version) privateRootReference(RootReference<K, V> r, Page<K, V> root, boolean keepLocked, int appendCounter) privateRootReference(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 PageModifierConstructorDescription(package private)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 PageMethods in org.h2.mvstore.rtree that return PageModifier and TypeMethodDescriptionMVRTreeMap.newPage(boolean leaf) MVRTreeMap.splitLinear(Page<Spatial, V> p) MVRTreeMap.splitQuadratic(Page<Spatial, V> p) Methods in org.h2.mvstore.rtree with parameters of type PageModifier and TypeMethodDescriptionvoidAdd all node keys (including internal bounds) to the given list.private booleanGet the object for the given key.private Spatialprotected intMVRTreeMap.getChildPageCount(Page<Spatial, V> p) private static <V> voidprivate VMVRTreeMap.operate(Page<Spatial, V> p, Spatial key, V value, MVMap.DecisionMaker<? super V> decisionMaker, Collection<Page<Spatial, V>> removedPages) MVRTreeMap.splitLinear(Page<Spatial, V> p) MVRTreeMap.splitQuadratic(Page<Spatial, V> p) Method parameters in org.h2.mvstore.rtree with type arguments of type PageModifier and TypeMethodDescriptionprivate VMVRTreeMap.operate(Page<Spatial, V> p, Spatial key, V value, MVMap.DecisionMaker<? super V> decisionMaker, Collection<Page<Spatial, V>> removedPages) Constructors in org.h2.mvstore.rtree with parameters of type PageModifierConstructorDescriptionContainsRTreeCursor(Page<Spatial, V> root, Spatial filter, SpatialDataType keyType) IntersectsRTreeCursor(Page<Spatial, V> root, Spatial filter, SpatialDataType keyType) protectedRTreeCursor(Page<Spatial, V> root, Spatial filter)