- java.lang.Object
-
- swim.db.Page
-
- swim.db.QTreePage
-
- swim.db.QTreeNode
-
public final class QTreeNode extends QTreePage
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
QTreeNode(QTreePageRef pageRef, long version, QTreePageRef[] childRefs, Slot[] slots)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
arity()
QTreeNode
balanced(long newVersion)
void
buildDiff(Builder<Page,?> builder)
int
childCount()
QTreeNode
committed(int zone, long base, long version)
boolean
containsKey(Value key, long xk, long yk)
static QTreeNode
create(PageContext context, int stem, long version, int post, int zone, long base, long span, long x, long y, Value fold, QTreePageRef[] childRefs, Slot[] slots)
static QTreeNode
create(PageContext context, int stem, long version, int zone, long base, long span, long x, long y, Value fold, QTreePageRef[] childRefs, Slot[] slots)
static QTreeNode
create(PageContext context, int stem, long version, long span, long x, long y, Value fold, QTreePageRef[] childRefs, Slot[] slots)
static QTreeNode
create(PageContext context, int stem, long version, long span, Value fold, QTreePageRef[] childRefs, Slot[] slots)
Cursor<Slot>
cursor(long x, long y)
Cursor<Slot>
deltaCursor(long x, long y, long sinceVersion)
Cursor<Slot>
depthCursor(long x, long y, int maxDepth)
QTreeNode
evacuated(int post, long version)
QTreePage
flattened(long newVersion)
static QTreeNode
fromValue(QTreePageRef pageRef, Value value)
Value
get(Value key, long xk, long yk)
QTreePage
getChild(int index)
QTreePageRef
getChildRef(int index)
Slot
getSlot(int index)
boolean
isEmpty()
boolean
isNode()
QTreePage
loadTree(PageLoader pageLoader)
QTreePageRef
pageRef()
PageType
pageType()
QTreeNode
reduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion)
QTreePage
removed(Value key, long xk, long yk, long newVersion)
int
slotCount()
void
soften(long version)
Cursor<Slot>
tileCursor(long x, long y)
Value
toHeader()
String
toString()
Value
toValue()
QTreeNode
uncommitted(long version)
long
version()
void
writeDiff(Output<?> output)
void
writePage(Output<?> output)
-
Methods inherited from class swim.db.QTreePage
containsKey, cursor, deltaCursor, depthCursor, empty, 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, isLeaf, isSTreePage, isUTreePage, pageContext, pageSize, post, printTree, span, stem, toDebugString, treeSize, zone
-
-
-
-
Constructor Detail
-
QTreeNode
protected QTreeNode(QTreePageRef pageRef, long version, QTreePageRef[] childRefs, Slot[] slots)
-
-
Method Detail
-
pageRef
public QTreePageRef pageRef()
-
childCount
public int childCount()
- Specified by:
childCount
in classPage
-
getChildRef
public QTreePageRef getChildRef(int index)
- Specified by:
getChildRef
in classQTreePage
-
containsKey
public boolean containsKey(Value key, long xk, long yk)
- Specified by:
containsKey
in classQTreePage
-
reduced
public QTreeNode reduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion)
-
evacuated
public QTreeNode evacuated(int post, long version)
-
committed
public QTreeNode committed(int zone, long base, long version)
-
uncommitted
public QTreeNode uncommitted(long version)
- Specified by:
uncommitted
in classQTreePage
-
loadTree
public QTreePage loadTree(PageLoader pageLoader)
-
depthCursor
public Cursor<Slot> depthCursor(long x, long y, int maxDepth)
- Specified by:
depthCursor
in classQTreePage
-
deltaCursor
public Cursor<Slot> deltaCursor(long x, long y, long sinceVersion)
- Specified by:
deltaCursor
in classQTreePage
-
tileCursor
public Cursor<Slot> tileCursor(long x, long y)
- Specified by:
tileCursor
in classQTreePage
-
create
public static QTreeNode create(PageContext context, int stem, long version, int post, int zone, long base, long span, long x, long y, Value fold, QTreePageRef[] childRefs, Slot[] slots)
-
create
public static QTreeNode create(PageContext context, int stem, long version, int zone, long base, long span, long x, long y, Value fold, QTreePageRef[] childRefs, Slot[] slots)
-
create
public static QTreeNode create(PageContext context, int stem, long version, long span, long x, long y, Value fold, QTreePageRef[] childRefs, Slot[] slots)
-
create
public static QTreeNode create(PageContext context, int stem, long version, long span, Value fold, QTreePageRef[] childRefs, Slot[] slots)
-
fromValue
public static QTreeNode fromValue(QTreePageRef pageRef, Value value)
-
-