- 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, swim.structure.Value fold)BTreePageRef(PageContext context, PageType pageType, int stem, int post, int zone, long base, long span, swim.structure.Value fold, Object page)BTreePageRef(PageContext context, PageType pageType, int stem, int post, int zone, long base, long span, swim.structure.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()voidbuildDiff(swim.util.Builder<Page,?> builder)BTreePageRefcommitted(int zone, long base, long version)swim.util.OrderedMapCursor<swim.structure.Value,swim.structure.Value>cursor()swim.util.OrderedMapCursor<swim.structure.Value,swim.structure.Value>deltaCursor(long sinceVersion)swim.util.OrderedMapCursor<swim.structure.Value,swim.structure.Value>depthCursor(int maxDepth)intdiffSize()static BTreePageRefempty(PageContext context, int stem, long version)BTreePageRefevacuated(int post, long version)swim.structure.Valuefold()static BTreePageReffromValue(PageContext context, int stem, swim.structure.Value value)BTreePagehardPage()booleanisCommitted()booleanisEmpty()BTreePageloadPage(boolean isResident)BTreePageloadPage(PageLoader pageLoader)BTreePageloadTree(boolean isResident)BTreePageloadTree(PageLoader pageLoader)BTreePagepage()PageContextpageContext()intpageRefSize()intpageSize()PageTypepageType()intpost()BTreePageRefreduced(swim.structure.Value identity, swim.util.CombinerFunction<? super swim.structure.Value,swim.structure.Value> accumulator, swim.util.CombinerFunction<swim.structure.Value,swim.structure.Value> combiner, long newVersion)BTreePagesetPageValue(swim.structure.Value value, boolean isResident)voidsoften(long version)BTreePagesoftPage()longsoftVersion()longspan()intstem()StringtoString()swim.structure.ValuetoValue()longtreeSize()BTreePageRefuncommitted(long version)voidwriteDiff(swim.codec.Output<?> output)voidwritePage(swim.codec.Output<?> output)voidwritePageRef(swim.codec.Output<?> output)intzone()-
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, swim.structure.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, swim.structure.Value fold, Object page)
-
BTreePageRef
public BTreePageRef(PageContext context, PageType pageType, int stem, int post, int zone, long base, long span, swim.structure.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 BTreePageRef reduced(swim.structure.Value identity, swim.util.CombinerFunction<? super swim.structure.Value,swim.structure.Value> accumulator, swim.util.CombinerFunction<swim.structure.Value,swim.structure.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(swim.codec.Output<?> output)
- Specified by:
writePageRefin classPageRef
-
writePage
public void writePage(swim.codec.Output<?> output)
-
writeDiff
public void writeDiff(swim.codec.Output<?> output)
-
buildDiff
public void buildDiff(swim.util.Builder<Page,?> builder)
-
setPageValue
public BTreePage setPageValue(swim.structure.Value value, boolean isResident)
- Specified by:
setPageValuein classPageRef
-
loadPage
public BTreePage loadPage(PageLoader pageLoader)
-
loadTree
public BTreePage loadTree(PageLoader pageLoader)
-
cursor
public swim.util.OrderedMapCursor<swim.structure.Value,swim.structure.Value> cursor()
-
depthCursor
public swim.util.OrderedMapCursor<swim.structure.Value,swim.structure.Value> depthCursor(int maxDepth)
-
deltaCursor
public swim.util.OrderedMapCursor<swim.structure.Value,swim.structure.Value> deltaCursor(long sinceVersion)
-
empty
public static BTreePageRef empty(PageContext context, int stem, long version)
-
fromValue
public static BTreePageRef fromValue(PageContext context, int stem, swim.structure.Value value)
-
-