- java.lang.Object
-
- swim.db.PageRef
-
- swim.db.BTreePageRef
-
public final class BTreePageRef extends PageRef
-
-
Constructor Summary
Constructors Constructor Description BTreePageRef(PageContext context, PageType pageType, int stem, int post, int zone, long base, long span, Value fold)
BTreePageRef(PageContext context, PageType pageType, int stem, int post, int zone, long base, long span, Value fold, Object page)
BTreePageRef(PageContext context, PageType pageType, int stem, int post, int zone, long base, long span, Value fold, Object page, int pageRefSize, int pageSize, int diffSize, long treeSize)
-
Method Summary
-
Methods inherited from class swim.db.PageRef
settings, toDebugString
-
-
-
-
Constructor Detail
-
BTreePageRef
public BTreePageRef(PageContext context, PageType pageType, int stem, int post, int zone, long base, long span, Value fold, Object page, int pageRefSize, int pageSize, int diffSize, long treeSize)
-
BTreePageRef
public BTreePageRef(PageContext context, PageType pageType, int stem, int post, int zone, long base, long span, Value fold, Object page)
-
BTreePageRef
public BTreePageRef(PageContext context, PageType pageType, int stem, int post, int zone, long base, long span, Value fold)
-
-
Method Detail
-
pageContext
public PageContext pageContext()
- Specified by:
pageContext
in classPageRef
-
softVersion
public long softVersion()
- Specified by:
softVersion
in classPageRef
-
isCommitted
public boolean isCommitted()
- Specified by:
isCommitted
in classPageRef
-
pageRefSize
public int pageRefSize()
- Specified by:
pageRefSize
in classPageRef
-
reduced
public BTreePageRef reduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion)
-
evacuated
public BTreePageRef evacuated(int post, long version)
-
committed
public BTreePageRef committed(int zone, long base, long version)
-
uncommitted
public BTreePageRef uncommitted(long version)
- Specified by:
uncommitted
in classPageRef
-
writePageRef
public void writePageRef(Output<?> output)
- Specified by:
writePageRef
in classPageRef
-
setPageValue
public BTreePage setPageValue(Value value, boolean isResident)
- Specified by:
setPageValue
in classPageRef
-
loadPage
public BTreePage loadPage(PageLoader pageLoader)
-
loadTree
public BTreePage loadTree(PageLoader pageLoader)
-
cursor
public OrderedMapCursor<Value,Value> cursor()
-
depthCursor
public OrderedMapCursor<Value,Value> depthCursor(int maxDepth)
-
deltaCursor
public OrderedMapCursor<Value,Value> deltaCursor(long sinceVersion)
-
empty
public static BTreePageRef empty(PageContext context, int stem, long version)
-
fromValue
public static BTreePageRef fromValue(PageContext context, int stem, Value value)
-
-