- java.lang.Object
-
- swim.db.Page
-
- swim.db.STreePage
-
-
Constructor Summary
Constructors Constructor Description STreePage()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description STreePageappended(swim.structure.Value key, swim.structure.Value newValue, long newVersion)abstract STreePagebalanced(long newVersion)abstract STreePagecommitted(int zone, long base, long version)abstract booleancontains(swim.structure.Value value)abstract voidcopyToArray(Object[] array, int offset)abstract swim.util.Cursor<swim.structure.Slot>cursor()abstract swim.util.Cursor<swim.structure.Slot>deltaCursor(long sinceVersion)abstract swim.util.Cursor<swim.structure.Slot>depthCursor(int maxDepth)abstract STreePagedrop(long lower, long newVersion)static STreePageempty(PageContext context, int stem, long version)abstract STreePageevacuated(int post, long version)static STreePagefromValue(STreePageRef pageRef, swim.structure.Value value)abstract swim.structure.Valueget(long index)abstract STreePagegetChild(int index)abstract STreePageRefgetChildRef(int index)abstract swim.structure.SlotgetEntry(long index)abstract swim.structure.SlotgetSlot(int x)abstract longindexOf(Object object)abstract STreePageinserted(long index, swim.structure.Value key, swim.structure.Value newValue, long newVersion)booleanisSTreePage()abstract longlastIndexOf(Object object)abstract STreePageRefpageRef()STreePageprepended(swim.structure.Value key, swim.structure.Value newValue, long newVersion)abstract STreePagereduced(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)abstract STreePageremoved(long index, long newVersion)abstract STreePageremoved(Object object, long newVersion)abstract STreeNodesplit(int x, long newVersion)abstract STreePagesplitLeft(int x, long newVersion)abstract STreePagesplitRight(int x, long newVersion)abstract STreePagetake(long upper, long newVersion)abstract STreePageuncommitted(long version)abstract STreePageupdated(long index, swim.structure.Value newValue, long newVersion)-
Methods inherited from class swim.db.Page
arity, base, childCount, diffSize, fold, isBTreePage, isEmpty, isLeaf, isNode, isQTreePage, isUTreePage, loadTreeAsync, pageContext, pageSize, pageType, post, printTree, soften, span, stem, toDebugString, toHeader, toValue, treeSize, version, writeDiff, writePage, zone
-
-
-
-
Method Detail
-
empty
public static STreePage empty(PageContext context, int stem, long version)
-
fromValue
public static STreePage fromValue(STreePageRef pageRef, swim.structure.Value value)
-
isSTreePage
public boolean isSTreePage()
- Overrides:
isSTreePagein classPage
-
pageRef
public abstract STreePageRef pageRef()
-
contains
public abstract boolean contains(swim.structure.Value value)
-
getChildRef
public abstract STreePageRef getChildRef(int index)
- Specified by:
getChildRefin classPage
-
getSlot
public abstract swim.structure.Slot getSlot(int x)
-
get
public abstract swim.structure.Value get(long index)
-
getEntry
public abstract swim.structure.Slot getEntry(long index)
-
updated
public abstract STreePage updated(long index, swim.structure.Value newValue, long newVersion)
-
inserted
public abstract STreePage inserted(long index, swim.structure.Value key, swim.structure.Value newValue, long newVersion)
-
appended
public STreePage appended(swim.structure.Value key, swim.structure.Value newValue, long newVersion)
-
prepended
public STreePage prepended(swim.structure.Value key, swim.structure.Value newValue, long newVersion)
-
removed
public abstract STreePage removed(long index, long newVersion)
-
drop
public abstract STreePage drop(long lower, long newVersion)
-
take
public abstract STreePage take(long upper, long newVersion)
-
indexOf
public abstract long indexOf(Object object)
-
lastIndexOf
public abstract long lastIndexOf(Object object)
-
copyToArray
public abstract void copyToArray(Object[] array, int offset)
-
balanced
public abstract STreePage balanced(long newVersion)
-
split
public abstract STreeNode split(int x, long newVersion)
-
splitLeft
public abstract STreePage splitLeft(int x, long newVersion)
-
splitRight
public abstract STreePage splitRight(int x, long newVersion)
-
reduced
public abstract STreePage 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 abstract STreePage evacuated(int post, long version)
-
committed
public abstract STreePage committed(int zone, long base, long version)
-
uncommitted
public abstract STreePage uncommitted(long version)
- Specified by:
uncommittedin classPage
-
cursor
public abstract swim.util.Cursor<swim.structure.Slot> cursor()
-
depthCursor
public abstract swim.util.Cursor<swim.structure.Slot> depthCursor(int maxDepth)
-
deltaCursor
public abstract swim.util.Cursor<swim.structure.Slot> deltaCursor(long sinceVersion)
-
-