- java.lang.Object
-
- swim.db.Page
-
- swim.db.STreePage
-
- swim.db.STreeLeaf
-
public final class STreeLeaf extends STreePage
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
STreeLeaf(STreePageRef pageRef, long version, Slot[] slots)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
arity()
STreePage
balanced(long newVersion)
void
buildDiff(Builder<Page,?> builder)
int
childCount()
STreeLeaf
committed(int zone, long base, long version)
boolean
contains(Value value)
void
copyToArray(Object[] array, int offset)
static STreeLeaf
create(PageContext context, int stem, long version, int zone, long base, Value fold, Slot[] slots)
static STreeLeaf
create(PageContext context, int stem, long version, Value fold, Slot[] slots)
Cursor<Slot>
cursor()
Cursor<Slot>
deltaCursor(long sinceVersion)
Cursor<Slot>
depthCursor(int maxDepth)
int
diffSize()
STreePage
drop(long lower, long newVersion)
static STreeLeaf
empty(PageContext context, int stem, long version)
STreeLeaf
evacuated(int post, long version)
static STreeLeaf
fromValue(STreePageRef pageRef, Value value)
Value
get(long index)
STreePage
getChild(int index)
STreePageRef
getChildRef(int index)
Slot
getEntry(long index)
Slot
getSlot(int x)
long
indexOf(Object object)
STreePage
inserted(long index, Value key, Value newValue, long newVersion)
boolean
isEmpty()
boolean
isLeaf()
long
lastIndexOf(Object object)
STreePage
loadTree(PageLoader pageLoader)
STreePageRef
pageRef()
int
pageSize()
PageType
pageType()
STreeLeaf
reduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion)
STreeLeaf
removed(long index, long newVersion)
STreeLeaf
removed(Object object, long newVersion)
void
soften(long version)
STreeNode
split(int x, long newVersion)
STreeLeaf
splitLeft(int x, long newVersion)
STreeLeaf
splitRight(int x, long newVersion)
STreePage
take(long upper, long newVersion)
Value
toHeader()
String
toString()
Value
toValue()
long
treeSize()
STreeLeaf
uncommitted(long version)
STreePage
updated(long index, Value newValue, long newVersion)
long
version()
void
writeDiff(Output<?> output)
void
writePage(Output<?> output)
-
Methods inherited from class swim.db.STreePage
appended, isSTreePage, prepended
-
Methods inherited from class swim.db.Page
base, fold, isBTreePage, isNode, isQTreePage, isUTreePage, pageContext, post, printTree, span, stem, toDebugString, zone
-
-
-
-
Constructor Detail
-
STreeLeaf
protected STreeLeaf(STreePageRef pageRef, long version, Slot[] slots)
-
-
Method Detail
-
pageRef
public STreePageRef pageRef()
-
childCount
public int childCount()
- Specified by:
childCount
in classPage
-
getChildRef
public STreePageRef getChildRef(int index)
- Specified by:
getChildRef
in classSTreePage
-
removed
public STreeLeaf removed(long index, long newVersion)
-
lastIndexOf
public long lastIndexOf(Object object)
- Specified by:
lastIndexOf
in classSTreePage
-
copyToArray
public void copyToArray(Object[] array, int offset)
- Specified by:
copyToArray
in classSTreePage
-
splitLeft
public STreeLeaf splitLeft(int x, long newVersion)
-
splitRight
public STreeLeaf splitRight(int x, long newVersion)
- Specified by:
splitRight
in classSTreePage
-
reduced
public STreeLeaf reduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion)
-
evacuated
public STreeLeaf evacuated(int post, long version)
-
committed
public STreeLeaf committed(int zone, long base, long version)
-
uncommitted
public STreeLeaf uncommitted(long version)
- Specified by:
uncommitted
in classSTreePage
-
loadTree
public STreePage loadTree(PageLoader pageLoader)
-
depthCursor
public Cursor<Slot> depthCursor(int maxDepth)
- Specified by:
depthCursor
in classSTreePage
-
deltaCursor
public Cursor<Slot> deltaCursor(long sinceVersion)
- Specified by:
deltaCursor
in classSTreePage
-
create
public static STreeLeaf create(PageContext context, int stem, long version, int zone, long base, Value fold, Slot[] slots)
-
create
public static STreeLeaf create(PageContext context, int stem, long version, Value fold, Slot[] slots)
-
empty
public static STreeLeaf empty(PageContext context, int stem, long version)
-
fromValue
public static STreeLeaf fromValue(STreePageRef pageRef, Value value)
-
-