- java.lang.Object
-
- swim.db.Page
-
- swim.db.STreePage
-
- swim.db.STreeNode
-
public final class STreeNode extends STreePage
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSTreeNode(STreePageRef pageRef, long version, STreePageRef[] childRefs, long[] knotIndexes)
-
Method Summary
Modifier and Type Method Description intarity()STreeNodebalanced(long newVersion)intchildCount()STreeNodecommitted(int zone, long base, long version)booleancontains(Value value)voidcopyToArray(Object[] array, int offset)static STreeNodecreate(PageContext context, int stem, long version, int post, int zone, long base, long span, Value fold, STreePageRef[] childRefs, long[] knotIndexes)static STreeNodecreate(PageContext context, int stem, long version, int zone, long base, long span, Value fold, STreePageRef[] childRefs, long[] knotIndexes)static STreeNodecreate(PageContext context, int stem, long version, long span, Value fold, STreePageRef[] childRefs, long[] knotIndexes)static STreeNodecreate(PageContext context, int stem, long version, Value fold, STreePageRef[] childRefs)Cursor<Slot>cursor()Cursor<Slot>deltaCursor(long sinceVersion)Cursor<Slot>depthCursor(int maxDepth)intdiffSize()STreePagedrop(long lower, long newVersion)STreeNodeevacuated(int post, long version)static STreeNodefromValue(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()booleanisNode()longlastIndexOf(Object object)voidloadTreeAsync(PageLoader pageLoader, Cont<Page> cont)STreePageRefpageRef()intpageSize()PageTypepageType()STreeNodereduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion)STreePageremoved(long index, long newVersion)STreePageremoved(Object object, long newVersion)voidsoften(long version)STreeNodesplit(int x, long newVersion)STreeNodesplitLeft(int x, long newVersion)STreeNodesplitRight(int x, long newVersion)STreePagetake(long upper, long newVersion)ValuetoHeader()StringtoString()ValuetoValue()longtreeSize()STreeNodeuncommitted(long version)STreePageupdated(long index, Value newValue, long newVersion)longversion()voidwriteDiff(Output<?> output)voidwritePage(Output<?> output)-
Methods inherited from class swim.db.STreePage
appended, empty, isSTreePage, prepended
-
Methods inherited from class swim.db.Page
base, fold, isBTreePage, isLeaf, isQTreePage, isUTreePage, pageContext, post, printTree, span, stem, toDebugString, zone
-
-
-
-
Constructor Detail
-
STreeNode
protected STreeNode(STreePageRef pageRef, long version, STreePageRef[] childRefs, long[] knotIndexes)
-
-
Method Detail
-
create
public static STreeNode create(PageContext context, int stem, long version, int post, int zone, long base, long span, Value fold, STreePageRef[] childRefs, long[] knotIndexes)
-
create
public static STreeNode create(PageContext context, int stem, long version, int zone, long base, long span, Value fold, STreePageRef[] childRefs, long[] knotIndexes)
-
create
public static STreeNode create(PageContext context, int stem, long version, long span, Value fold, STreePageRef[] childRefs, long[] knotIndexes)
-
create
public static STreeNode create(PageContext context, int stem, long version, Value fold, STreePageRef[] childRefs)
-
fromValue
public static STreeNode fromValue(STreePageRef pageRef, Value value)
-
pageRef
public STreePageRef pageRef()
-
childCount
public int childCount()
- Specified by:
childCountin classPage
-
getChildRef
public STreePageRef getChildRef(int index)
- Specified by:
getChildRefin classSTreePage
-
removed
public STreePage 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 STreeNode splitLeft(int x, long newVersion)
-
splitRight
public STreeNode splitRight(int x, long newVersion)
- Specified by:
splitRightin classSTreePage
-
reduced
public STreeNode reduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion)
-
evacuated
public STreeNode evacuated(int post, long version)
-
committed
public STreeNode committed(int zone, long base, long version)
-
uncommitted
public STreeNode uncommitted(long version)
- Specified by:
uncommittedin classSTreePage
-
loadTreeAsync
public void loadTreeAsync(PageLoader pageLoader, Cont<Page> cont)
- Specified by:
loadTreeAsyncin classPage
-
depthCursor
public Cursor<Slot> depthCursor(int maxDepth)
- Specified by:
depthCursorin classSTreePage
-
deltaCursor
public Cursor<Slot> deltaCursor(long sinceVersion)
- Specified by:
deltaCursorin classSTreePage
-
-