Package org.h2.mvstore
Class Page.PageReference<K,V>
java.lang.Object
org.h2.mvstore.Page.PageReference<K,V>
A pointer to a page, either in-memory or using a page position.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final long
The descendant count for this child page.(package private) static final Page.PageReference
Singleton object used when arrays of PageReference have not yet been filled.The page, if in memory, or null.private long
The position, if known, or 0. -
Constructor Summary
ConstructorsModifierConstructorDescription(package private)
PageReference
(long pos, long count) PageReference
(Page<K, V> page) private
PageReference
(Page<K, V> page, long pos, long count) -
Method Summary
Modifier and TypeMethodDescription(package private) void
Clear if necessary, reference to the actual child Page object, so it can be garbage collected if not actively used elsewhere.static <X,
Y> Page.PageReference <X, Y> empty()
Get an empty page reference.getPage()
(package private) long
getPos()
(package private) void
resetPos()
Re-acquire position from in-memory page.toString()
-
Field Details
-
EMPTY
Singleton object used when arrays of PageReference have not yet been filled. -
pos
private long posThe position, if known, or 0. -
page
The page, if in memory, or null. -
count
final long countThe descendant count for this child page.
-
-
Constructor Details
-
PageReference
-
PageReference
PageReference(long pos, long count) -
PageReference
-
-
Method Details
-
empty
Get an empty page reference.- Type Parameters:
X
- the key classY
- the value class- Returns:
- the page reference
-
getPage
-
clearPageReference
void clearPageReference()Clear if necessary, reference to the actual child Page object, so it can be garbage collected if not actively used elsewhere. Reference is cleared only if corresponding page was already saved on a disk. -
getPos
long getPos() -
resetPos
void resetPos()Re-acquire position from in-memory page. -
toString
-