- java.lang.Object
-
- swim.db.PageRef
-
- swim.db.STreePageRef
-
public final class STreePageRef extends PageRef
-
-
Constructor Summary
Constructors Constructor Description STreePageRef(PageContext context, PageType pageType, int stem, int post, int zone, long base, long span, Value fold)STreePageRef(PageContext context, PageType pageType, int stem, int post, int zone, long base, long span, Value fold, Object page)STreePageRef(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longbase()STreePageRefcommitted(int zone, long base, long version)Cursor<Slot>cursor()Cursor<Slot>deltaCursor(long sinceVersion)Cursor<Slot>depthCursor(int maxDepth)intdiffSize()static STreePageRefempty(PageContext context, int stem, long version)STreePageRefevacuated(int post, long version)Valuefold()static STreePageReffromValue(PageContext context, int stem, Value value)STreePagehardPage()booleanisCommitted()booleanisEmpty()voidloadPageAsync(boolean isResident, Cont<Page> cont)voidloadTreeAsync(boolean isResident, Cont<Page> cont)voidloadTreeAsync(PageLoader pageLoader, Cont<Page> cont)STreePagepage()PageContextpageContext()intpageRefSize()intpageSize()PageTypepageType()intpost()STreePageRefreduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion)STreePagesetPageValue(Value value, boolean isResident)voidsoften(long version)STreePagesoftPage()longsoftVersion()longspan()intstem()StringtoString()ValuetoValue()longtreeSize()STreePageRefuncommitted(long version)voidwriteDiff(Output<?> output)voidwritePage(Output<?> output)voidwritePageRef(Output<?> output)intzone()-
Methods inherited from class swim.db.PageRef
settings, toDebugString
-
-
-
-
Constructor Detail
-
STreePageRef
public STreePageRef(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)
-
STreePageRef
public STreePageRef(PageContext context, PageType pageType, int stem, int post, int zone, long base, long span, Value fold, Object page)
-
STreePageRef
public STreePageRef(PageContext context, PageType pageType, int stem, int post, int zone, long base, long span, Value fold)
-
-
Method Detail
-
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 STreePageRef reduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion)
-
evacuated
public STreePageRef evacuated(int post, long version)
-
committed
public STreePageRef committed(int zone, long base, long version)
-
uncommitted
public STreePageRef uncommitted(long version)
- Specified by:
uncommittedin classPageRef
-
writePageRef
public void writePageRef(Output<?> output)
- Specified by:
writePageRefin classPageRef
-
setPageValue
public STreePage 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
-
empty
public static STreePageRef empty(PageContext context, int stem, long version)
-
fromValue
public static STreePageRef fromValue(PageContext context, int stem, Value value)
-
-