- 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intarity()STreeNodebalanced(long newVersion)voidbuildDiff(swim.util.Builder<Page,?> builder)intchildCount()STreeNodecommitted(int zone, long base, long version)booleancontains(swim.structure.Value value)voidcopyToArray(Object[] array, int offset)static STreeNodecreate(PageContext context, int stem, long version, int post, int zone, long base, long span, swim.structure.Value fold, STreePageRef[] childRefs, long[] knotIndexes)static STreeNodecreate(PageContext context, int stem, long version, int zone, long base, long span, swim.structure.Value fold, STreePageRef[] childRefs, long[] knotIndexes)static STreeNodecreate(PageContext context, int stem, long version, long span, swim.structure.Value fold, STreePageRef[] childRefs, long[] knotIndexes)static STreeNodecreate(PageContext context, int stem, long version, swim.structure.Value fold, STreePageRef[] childRefs)swim.util.Cursor<swim.structure.Slot>cursor()swim.util.Cursor<swim.structure.Slot>deltaCursor(long sinceVersion)swim.util.Cursor<swim.structure.Slot>depthCursor(int maxDepth)intdiffSize()STreePagedrop(long lower, long newVersion)STreeNodeevacuated(int post, long version)static STreeNodefromValue(STreePageRef pageRef, swim.structure.Value value)swim.structure.Valueget(long index)STreePagegetChild(int index)STreePageRefgetChildRef(int index)swim.structure.SlotgetEntry(long index)swim.structure.SlotgetSlot(int x)longindexOf(Object object)STreePageinserted(long index, swim.structure.Value key, swim.structure.Value newValue, long newVersion)booleanisEmpty()booleanisNode()longlastIndexOf(Object object)STreePageloadTree(PageLoader pageLoader)STreePageRefpageRef()intpageSize()PageTypepageType()STreeNodereduced(swim.structure.Value identity, swim.util.CombinerFunction<? super swim.structure.Value,swim.structure.Value> accumulator, swim.util.CombinerFunction<swim.structure.Value,swim.structure.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)swim.structure.ValuetoHeader()StringtoString()swim.structure.ValuetoValue()longtreeSize()STreeNodeuncommitted(long version)STreePageupdated(long index, swim.structure.Value newValue, long newVersion)longversion()voidwriteDiff(swim.codec.Output<?> output)voidwritePage(swim.codec.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
-
pageRef
public STreePageRef pageRef()
-
childCount
public int childCount()
- Specified by:
childCountin classPage
-
getChildRef
public STreePageRef getChildRef(int index)
- Specified by:
getChildRefin classSTreePage
-
contains
public boolean contains(swim.structure.Value value)
-
updated
public STreePage updated(long index, swim.structure.Value newValue, long newVersion)
-
inserted
public STreePage inserted(long index, swim.structure.Value key, swim.structure.Value newValue, long newVersion)
-
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(swim.structure.Value identity, swim.util.CombinerFunction<? super swim.structure.Value,swim.structure.Value> accumulator, swim.util.CombinerFunction<swim.structure.Value,swim.structure.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
-
buildDiff
public void buildDiff(swim.util.Builder<Page,?> builder)
-
loadTree
public STreePage loadTree(PageLoader pageLoader)
-
cursor
public swim.util.Cursor<swim.structure.Slot> cursor()
-
depthCursor
public swim.util.Cursor<swim.structure.Slot> depthCursor(int maxDepth)
- Specified by:
depthCursorin classSTreePage
-
deltaCursor
public swim.util.Cursor<swim.structure.Slot> deltaCursor(long sinceVersion)
- Specified by:
deltaCursorin classSTreePage
-
create
public static STreeNode create(PageContext context, int stem, long version, int post, int zone, long base, long span, swim.structure.Value fold, STreePageRef[] childRefs, long[] knotIndexes)
-
create
public static STreeNode create(PageContext context, int stem, long version, int zone, long base, long span, swim.structure.Value fold, STreePageRef[] childRefs, long[] knotIndexes)
-
create
public static STreeNode create(PageContext context, int stem, long version, long span, swim.structure.Value fold, STreePageRef[] childRefs, long[] knotIndexes)
-
create
public static STreeNode create(PageContext context, int stem, long version, swim.structure.Value fold, STreePageRef[] childRefs)
-
fromValue
public static STreeNode fromValue(STreePageRef pageRef, swim.structure.Value value)
-
-