java.lang.Object
swim.db.Page
swim.db.QTreePage
swim.db.QTreeLeaf
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedQTreeLeaf(QTreePageRef pageRef, long version, swim.structure.Slot[] slots) -
Method Summary
Modifier and TypeMethodDescriptionintarity()balanced(long newVersion) voidintcommitted(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) evacuated(int post, long version) flattened(long newVersion) static QTreeLeaffromValue(QTreePageRef pageRef, swim.structure.Value value) swim.structure.Valueget(swim.structure.Value key, long xk, long yk) getChild(int index) getChildRef(int index) swim.structure.SlotgetSlot(int index) booleanisEmpty()booleanisLeaf()loadTree(PageLoader pageLoader) pageRef()pageType()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) removed(swim.structure.Value key, long xk, long yk, long newVersion) intvoidsoften(long version) swim.util.Cursor<swim.structure.Slot>tileCursor(long x, long y) swim.structure.ValuetoHeader()toString()swim.structure.ValuetoValue()uncommitted(long version) updated(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, ySplitMethods inherited from class swim.db.Page
base, diffSize, fold, isBTreePage, isNode, isSTreePage, isUTreePage, pageContext, pageSize, post, printTree, span, stem, toDebugString, treeSize, zone
-
Constructor Details
-
QTreeLeaf
-
-
Method Details
-
isLeaf
public boolean isLeaf() -
pageRef
-
pageType
-
version
public long version() -
isEmpty
public boolean isEmpty() -
arity
public int arity() -
childCount
public int childCount()- Specified by:
childCountin classPage
-
getChildRef
- Specified by:
getChildRefin classQTreePage
-
getChild
-
slotCount
public int slotCount() -
getSlot
public swim.structure.Slot getSlot(int index) -
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
-
flattened
-
balanced
-
toHeader
public swim.structure.Value toHeader() -
toValue
public swim.structure.Value toValue() -
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
-
committed
-
uncommitted
- Specified by:
uncommittedin classQTreePage
-
writePage
public void writePage(swim.codec.Output<?> output) -
writeDiff
public void writeDiff(swim.codec.Output<?> output) -
buildDiff
-
loadTree
-
soften
public void soften(long version) -
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
-
toString
-
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
-
fromValue
-