- java.lang.Object
-
- swim.db.PageRef
-
- swim.db.UTreePageRef
-
public final class UTreePageRef extends PageRef
-
-
Constructor Summary
Constructors Constructor Description UTreePageRef(PageContext context, int stem, int post, int zone, long base)
UTreePageRef(PageContext context, int stem, int post, int zone, long base, Object page)
UTreePageRef(PageContext context, int stem, int post, int zone, long base, Object page, int pageRefSize, int pageSize, int diffSize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
base()
UTreePageRef
committed(int zone, long base, long version)
Cursor<Value>
cursor()
int
diffSize()
static UTreePageRef
empty(PageContext context, int stem, long version)
UTreePageRef
evacuated(int post, long version)
Value
fold()
static UTreePageRef
fromValue(PageContext context, int stem, Value value)
UTreePage
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)
UTreePage
page()
PageContext
pageContext()
int
pageRefSize()
int
pageSize()
PageType
pageType()
int
post()
UTreePage
setPageValue(Value value, boolean isResident)
void
soften(long version)
UTreePage
softPage()
long
softVersion()
long
span()
int
stem()
String
toString()
Value
toValue()
long
treeSize()
UTreePageRef
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
-
UTreePageRef
public UTreePageRef(PageContext context, int stem, int post, int zone, long base, Object page, int pageRefSize, int pageSize, int diffSize)
-
UTreePageRef
public UTreePageRef(PageContext context, int stem, int post, int zone, long base, Object page)
-
UTreePageRef
public UTreePageRef(PageContext context, int stem, int post, int zone, long base)
-
-
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
-
evacuated
public UTreePageRef evacuated(int post, long version)
-
committed
public UTreePageRef committed(int zone, long base, long version)
-
uncommitted
public UTreePageRef uncommitted(long version)
- Specified by:
uncommitted
in classPageRef
-
writePageRef
public void writePageRef(Output<?> output)
- Specified by:
writePageRef
in classPageRef
-
setPageValue
public UTreePage 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 UTreePageRef empty(PageContext context, int stem, long version)
-
fromValue
public static UTreePageRef fromValue(PageContext context, int stem, Value value)
-
-