- java.lang.Object
-
- swim.db.Page
-
- swim.db.STreePage
-
- swim.db.STreeLeaf
-
public final class STreeLeaf extends STreePage
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSTreeLeaf(STreePageRef pageRef, long version, Slot[] slots)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intarity()STreePagebalanced(long newVersion)voidbuildDiff(Builder<Page,?> builder)intchildCount()STreeLeafcommitted(int zone, long base, long version)booleancontains(Value value)voidcopyToArray(Object[] array, int offset)static STreeLeafcreate(PageContext context, int stem, long version, int zone, long base, Value fold, Slot[] slots)static STreeLeafcreate(PageContext context, int stem, long version, Value fold, Slot[] slots)Cursor<Slot>cursor()Cursor<Slot>deltaCursor(long sinceVersion)Cursor<Slot>depthCursor(int maxDepth)intdiffSize()STreePagedrop(long lower, long newVersion)static STreeLeafempty(PageContext context, int stem, long version)STreeLeafevacuated(int post, long version)static STreeLeaffromValue(STreePageRef pageRef, Value value)Valueget(long index)STreePagegetChild(int index)STreePageRefgetChildRef(int index)SlotgetEntry(long index)SlotgetSlot(int x)longindexOf(Object object)STreePageinserted(long index, Value key, Value newValue, long newVersion)booleanisEmpty()booleanisLeaf()longlastIndexOf(Object object)STreePageloadTree(PageLoader pageLoader)STreePageRefpageRef()intpageSize()PageTypepageType()STreeLeafreduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion)STreeLeafremoved(long index, long newVersion)STreeLeafremoved(Object object, long newVersion)voidsoften(long version)STreeNodesplit(int x, long newVersion)STreeLeafsplitLeft(int x, long newVersion)STreeLeafsplitRight(int x, long newVersion)STreePagetake(long upper, long newVersion)ValuetoHeader()StringtoString()ValuetoValue()longtreeSize()STreeLeafuncommitted(long version)STreePageupdated(long index, Value newValue, long newVersion)longversion()voidwriteDiff(Output<?> output)voidwritePage(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:
childCountin classPage
-
getChildRef
public STreePageRef getChildRef(int index)
- Specified by:
getChildRefin classSTreePage
-
removed
public STreeLeaf removed(long index, long newVersion)
-
lastIndexOf
public long lastIndexOf(Object object)
- Specified by:
lastIndexOfin classSTreePage
-
copyToArray
public void copyToArray(Object[] array, int offset)
- Specified by:
copyToArrayin classSTreePage
-
splitLeft
public STreeLeaf splitLeft(int x, long newVersion)
-
splitRight
public STreeLeaf splitRight(int x, long newVersion)
- Specified by:
splitRightin 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:
uncommittedin classSTreePage
-
loadTree
public STreePage loadTree(PageLoader pageLoader)
-
depthCursor
public Cursor<Slot> depthCursor(int maxDepth)
- Specified by:
depthCursorin classSTreePage
-
deltaCursor
public Cursor<Slot> deltaCursor(long sinceVersion)
- Specified by:
deltaCursorin 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)
-
-