- 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
-
empty
public static BTreePageRef empty(PageContext context, int stem, long version)
-
fromValue
public static BTreePageRef fromValue(PageContext context, int stem, Value value)
-
pageContext
public PageContext pageContext()
- Specified by:
pageContextin classPageRef
-
softVersion
public long softVersion()
- Specified by:
softVersionin classPageRef
-
isCommitted
public boolean isCommitted()
- Specified by:
isCommittedin classPageRef
-
pageRefSize
public int pageRefSize()
- Specified by:
pageRefSizein 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:
uncommittedin classPageRef
-
writePageRef
public void writePageRef(Output<?> output)
- Specified by:
writePageRefin classPageRef
-
setPageValue
public BTreePage setPageValue(Value value, boolean isResident)
- Specified by:
setPageValuein classPageRef
-
loadPageAsync
public void loadPageAsync(boolean isResident, Cont<Page> cont)- Specified by:
loadPageAsyncin classPageRef
-
loadTreeAsync
public void loadTreeAsync(boolean isResident, Cont<Page> cont)- Specified by:
loadTreeAsyncin classPageRef
-
loadTreeAsync
public void loadTreeAsync(PageLoader pageLoader, Cont<Page> cont)
- Specified by:
loadTreeAsyncin classPageRef
-
cursor
public OrderedMapCursor<Value,Value> cursor()
-
depthCursor
public OrderedMapCursor<Value,Value> depthCursor(int maxDepth)
-
deltaCursor
public OrderedMapCursor<Value,Value> deltaCursor(long sinceVersion)
-
-