- java.lang.Object
-
- swim.db.Page
-
- swim.db.QTreePage
-
- swim.db.QTreeLeaf
-
public final class QTreeLeaf extends QTreePage
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedQTreeLeaf(QTreePageRef pageRef, long version, swim.structure.Slot[] slots)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intarity()QTreePagebalanced(long newVersion)voidbuildDiff(swim.util.Builder<Page,?> builder)intchildCount()QTreeLeafcommitted(int zone, long base, long version)booleancontainsKey(swim.structure.Value key, long xk, long yk)static QTreeLeafcreate(PageContext context, int stem, long version, int zone, long base, long x, long y, swim.structure.Value fold, swim.structure.Slot[] slots)static QTreeLeafcreate(PageContext context, int stem, long version, long x, long y, swim.structure.Value fold, swim.structure.Slot[] slots)static QTreeLeafcreate(PageContext context, int stem, long version, swim.structure.Value fold, swim.structure.Slot[] slots)swim.util.Cursor<swim.structure.Slot>cursor(long x, long y)swim.util.Cursor<swim.structure.Slot>deltaCursor(long x, long y, long sinceVersion)swim.util.Cursor<swim.structure.Slot>depthCursor(long x, long y, int maxDepth)static QTreeLeafempty(PageContext context, int stem, long version)QTreeLeafevacuated(int post, long version)QTreePageflattened(long newVersion)static QTreeLeaffromValue(QTreePageRef pageRef, swim.structure.Value value)swim.structure.Valueget(swim.structure.Value key, long xk, long yk)QTreePagegetChild(int index)QTreePageRefgetChildRef(int index)swim.structure.SlotgetSlot(int index)booleanisEmpty()booleanisLeaf()QTreePageloadTree(PageLoader pageLoader)QTreePageRefpageRef()PageTypepageType()QTreeLeafreduced(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)QTreeLeafremoved(swim.structure.Value key, long xk, long yk, long newVersion)intslotCount()voidsoften(long version)swim.util.Cursor<swim.structure.Slot>tileCursor(long x, long y)swim.structure.ValuetoHeader()StringtoString()swim.structure.ValuetoValue()QTreeLeafuncommitted(long version)QTreeLeafupdated(swim.structure.Value key, long xk, long yk, swim.structure.Value newValue, long newVersion, boolean canSplit)longversion()voidwriteDiff(swim.codec.Output<?> output)voidwritePage(swim.codec.Output<?> output)-
Methods inherited from class swim.db.QTreePage
containsKey, cursor, deltaCursor, depthCursor, get, getAll, getAll, isQTreePage, removed, tileCursor, updated, updated, x, xBase, xMask, xRank, xSplit, y, yBase, yMask, yRank, ySplit
-
Methods inherited from class swim.db.Page
base, diffSize, fold, isBTreePage, isNode, isSTreePage, isUTreePage, pageContext, pageSize, post, printTree, span, stem, toDebugString, treeSize, zone
-
-
-
-
Constructor Detail
-
QTreeLeaf
protected QTreeLeaf(QTreePageRef pageRef, long version, swim.structure.Slot[] slots)
-
-
Method Detail
-
pageRef
public QTreePageRef pageRef()
-
childCount
public int childCount()
- Specified by:
childCountin classPage
-
getChildRef
public QTreePageRef getChildRef(int index)
- Specified by:
getChildRefin classQTreePage
-
containsKey
public boolean containsKey(swim.structure.Value key, long xk, long yk)- Specified by:
containsKeyin classQTreePage
-
get
public swim.structure.Value get(swim.structure.Value key, long xk, long yk)
-
updated
public QTreeLeaf updated(swim.structure.Value key, long xk, long yk, swim.structure.Value newValue, long newVersion, boolean canSplit)
-
removed
public QTreeLeaf removed(swim.structure.Value key, long xk, long yk, long newVersion)
-
reduced
public QTreeLeaf 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 QTreeLeaf evacuated(int post, long version)
-
committed
public QTreeLeaf committed(int zone, long base, long version)
-
uncommitted
public QTreeLeaf uncommitted(long version)
- Specified by:
uncommittedin classQTreePage
-
buildDiff
public void buildDiff(swim.util.Builder<Page,?> builder)
-
loadTree
public QTreePage loadTree(PageLoader pageLoader)
-
cursor
public swim.util.Cursor<swim.structure.Slot> cursor(long x, long y)
-
depthCursor
public swim.util.Cursor<swim.structure.Slot> depthCursor(long x, long y, int maxDepth)- Specified by:
depthCursorin classQTreePage
-
deltaCursor
public swim.util.Cursor<swim.structure.Slot> deltaCursor(long x, long y, long sinceVersion)- Specified by:
deltaCursorin classQTreePage
-
tileCursor
public swim.util.Cursor<swim.structure.Slot> tileCursor(long x, long y)- Specified by:
tileCursorin classQTreePage
-
create
public static QTreeLeaf create(PageContext context, int stem, long version, int zone, long base, long x, long y, swim.structure.Value fold, swim.structure.Slot[] slots)
-
create
public static QTreeLeaf create(PageContext context, int stem, long version, long x, long y, swim.structure.Value fold, swim.structure.Slot[] slots)
-
create
public static QTreeLeaf create(PageContext context, int stem, long version, swim.structure.Value fold, swim.structure.Slot[] slots)
-
empty
public static QTreeLeaf empty(PageContext context, int stem, long version)
-
fromValue
public static QTreeLeaf fromValue(QTreePageRef pageRef, swim.structure.Value value)
-
-