java.lang.Object
swim.db.PageRef
swim.db.STreePageRef
-
Constructor Summary
ConstructorsConstructorDescriptionSTreePageRef(PageContext context, PageType pageType, int stem, int post, int zone, long base, long span, swim.structure.Value fold) STreePageRef(PageContext context, PageType pageType, int stem, int post, int zone, long base, long span, swim.structure.Value fold, Object page) STreePageRef(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
Modifier and TypeMethodDescriptionlongbase()voidcommitted(int zone, long base, long version) swim.util.Cursor<swim.structure.Slot>cursor()swim.util.Cursor<swim.structure.Slot>deltaCursor(long sinceVersion) swim.util.Cursor<swim.structure.Slot>depthCursor(int maxDepth) intdiffSize()static STreePageRefempty(PageContext context, int stem, long version) evacuated(int post, long version) swim.structure.Valuefold()static STreePageReffromValue(PageContext context, int stem, swim.structure.Value value) hardPage()booleanbooleanisEmpty()loadPage(boolean isResident) loadPage(PageLoader pageLoader) loadTree(boolean isResident) loadTree(PageLoader pageLoader) page()intintpageSize()pageType()intpost()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) setPageValue(swim.structure.Value value, boolean isResident) voidsoften(long version) softPage()longlongspan()intstem()toString()swim.structure.ValuetoValue()longtreeSize()uncommitted(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 Details
-
STreePageRef
public STreePageRef(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) -
STreePageRef
public STreePageRef(PageContext context, PageType pageType, int stem, int post, int zone, long base, long span, swim.structure.Value fold, Object page) -
STreePageRef
public STreePageRef(PageContext context, PageType pageType, int stem, int post, int zone, long base, long span, swim.structure.Value fold)
-
-
Method Details
-
pageContext
- Specified by:
pageContextin classPageRef
-
pageType
-
stem
public int stem() -
post
public int post() -
zone
public int zone() -
base
public long base() -
span
public long span() -
fold
public swim.structure.Value fold() -
page
-
hardPage
-
softPage
-
softVersion
public long softVersion()- Specified by:
softVersionin classPageRef
-
isEmpty
public boolean isEmpty() -
isCommitted
public boolean isCommitted()- Specified by:
isCommittedin classPageRef
-
pageRefSize
public int pageRefSize()- Specified by:
pageRefSizein classPageRef
-
pageSize
public int pageSize() -
diffSize
public int diffSize() -
treeSize
public long treeSize() -
toValue
public swim.structure.Value toValue() -
reduced
public STreePageRef 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
-
committed
-
uncommitted
- 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
-
setPageValue
- Specified by:
setPageValuein classPageRef
-
loadPage
-
loadPage
-
loadTree
-
loadTree
-
soften
public void soften(long version) -
cursor
public swim.util.Cursor<swim.structure.Slot> cursor() -
depthCursor
public swim.util.Cursor<swim.structure.Slot> depthCursor(int maxDepth) -
deltaCursor
public swim.util.Cursor<swim.structure.Slot> deltaCursor(long sinceVersion) -
toString
-
empty
-
fromValue
-