- 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 long
base()
STreePageRef
committed(int zone, long base, long version)
Cursor<Slot>
cursor()
Cursor<Slot>
deltaCursor(long sinceVersion)
Cursor<Slot>
depthCursor(int maxDepth)
int
diffSize()
static STreePageRef
empty(PageContext context, int stem, long version)
STreePageRef
evacuated(int post, long version)
Value
fold()
static STreePageRef
fromValue(PageContext context, int stem, Value value)
STreePage
hardPage()
boolean
isCommitted()
boolean
isEmpty()
void
loadPageAsync(boolean isResident, Cont<Page> cont)
void
loadTreeAsync(boolean isResident, Cont<Page> cont)
void
loadTreeAsync(PageLoader pageLoader, Cont<Page> cont)
STreePage
page()
PageContext
pageContext()
int
pageRefSize()
int
pageSize()
PageType
pageType()
int
post()
STreePageRef
reduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion)
STreePage
setPageValue(Value value, boolean isResident)
void
soften(long version)
STreePage
softPage()
long
softVersion()
long
span()
int
stem()
String
toString()
Value
toValue()
long
treeSize()
STreePageRef
uncommitted(long version)
void
writeDiff(Output<?> output)
void
writePage(Output<?> output)
void
writePageRef(Output<?> output)
int
zone()
-
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:
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 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:
uncommitted
in classPageRef
-
writePageRef
public void writePageRef(Output<?> output)
- Specified by:
writePageRef
in classPageRef
-
setPageValue
public STreePage setPageValue(Value value, boolean isResident)
- Specified by:
setPageValue
in classPageRef
-
loadPageAsync
public void loadPageAsync(boolean isResident, Cont<Page> cont)
- Specified by:
loadPageAsync
in classPageRef
-
loadTreeAsync
public void loadTreeAsync(boolean isResident, Cont<Page> cont)
- Specified by:
loadTreeAsync
in classPageRef
-
loadTreeAsync
public void loadTreeAsync(PageLoader pageLoader, Cont<Page> cont)
- Specified by:
loadTreeAsync
in classPageRef
-
empty
public static STreePageRef empty(PageContext context, int stem, long version)
-
fromValue
public static STreePageRef fromValue(PageContext context, int stem, Value value)
-
-