- java.lang.Object
-
- swim.db.Page
-
- swim.db.UTreePage
-
- swim.db.UTreeLeaf
-
public final class UTreeLeaf extends UTreePage
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UTreeLeaf(UTreePageRef pageRef, long version, Value value)
-
Method Summary
Modifier and Type Method Description int
arity()
int
childCount()
UTreeLeaf
committed(int zone, long base, long version)
static UTreeLeaf
create(PageContext context, int stem, long version, int zone, long base, Value value)
static UTreeLeaf
create(PageContext context, int stem, long version, Value value)
Cursor<Value>
cursor()
int
diffSize()
static UTreeLeaf
empty(PageContext context, int stem, long version)
UTreeLeaf
evacuated(int post, long version)
static UTreeLeaf
fromValue(UTreePageRef pageRef, Value value)
Value
get()
UTreePage
getChild(int index)
UTreePageRef
getChildRef(int index)
boolean
isEmpty()
boolean
isLeaf()
void
loadTreeAsync(PageLoader pageLoader, Cont<Page> cont)
UTreePageRef
pageRef()
int
pageSize()
PageType
pageType()
void
soften(long version)
Value
toHeader()
String
toString()
Value
toValue()
long
treeSize()
UTreeLeaf
uncommitted(long version)
UTreePage
updated(Value newValue, long newVersion)
long
version()
void
writeDiff(Output<?> output)
void
writePage(Output<?> output)
-
Methods inherited from class swim.db.UTreePage
isUTreePage
-
Methods inherited from class swim.db.Page
base, fold, isBTreePage, isNode, isQTreePage, isSTreePage, pageContext, post, printTree, span, stem, toDebugString, zone
-
-
-
-
Constructor Detail
-
UTreeLeaf
protected UTreeLeaf(UTreePageRef pageRef, long version, Value value)
-
-
Method Detail
-
create
public static UTreeLeaf create(PageContext context, int stem, long version, int zone, long base, Value value)
-
create
public static UTreeLeaf create(PageContext context, int stem, long version, Value value)
-
empty
public static UTreeLeaf empty(PageContext context, int stem, long version)
-
fromValue
public static UTreeLeaf fromValue(UTreePageRef pageRef, Value value)
-
pageRef
public UTreePageRef pageRef()
-
childCount
public int childCount()
- Specified by:
childCount
in classPage
-
getChildRef
public UTreePageRef getChildRef(int index)
- Specified by:
getChildRef
in classUTreePage
-
evacuated
public UTreeLeaf evacuated(int post, long version)
-
committed
public UTreeLeaf committed(int zone, long base, long version)
-
uncommitted
public UTreeLeaf uncommitted(long version)
- Specified by:
uncommitted
in classUTreePage
-
loadTreeAsync
public void loadTreeAsync(PageLoader pageLoader, Cont<Page> cont)
- Specified by:
loadTreeAsync
in classPage
-
-