Class RootReference<K,V>
java.lang.Object
org.h2.mvstore.RootReference<K,V>
Class RootReference is an immutable structure to represent state of the MVMap as a whole
(not related to a particular B-Tree node).
Single structure would allow for non-blocking atomic state change.
The most important part of it is a reference to the root node.
- Author:
- Andrei Tokar
-
Field Summary
Fields -
Method Summary
-
Field Details
-
root
-
version
public final long versionThe version used for writing.
-
-
Method Details
-
isLockedByCurrentThread
public boolean isLockedByCurrentThread() -
needFlush
public boolean needFlush()Whether flushing is needed.- Returns:
- true if yes
-
getTotalCount
public long getTotalCount() -
toString
-