- 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
arity()
void
buildDiff(Builder<Page,?> builder)
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()
UTreePage
loadTree(PageLoader pageLoader)
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
-
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
-
loadTree
public UTreePage loadTree(PageLoader pageLoader)
-
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)
-
-