- java.lang.Object
-
- swim.db.Page
-
- swim.db.BTreePage
-
- swim.db.BTreeNode
-
public final class BTreeNode extends BTreePage
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBTreeNode(BTreePageRef pageRef, long version, BTreePageRef[] childRefs, Value[] knotKeys)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intarity()BTreeNodebalanced(long newVersion)voidbuildDiff(Builder<Page,?> builder)intchildCount()BTreeNodecommitted(int zone, long base, long version)booleancontainsKey(Value key)booleancontainsValue(Value value)static BTreeNodecreate(PageContext context, int stem, long version, int post, int zone, long base, long span, Value fold, BTreePageRef[] childRefs, Value[] knotKeys)static BTreeNodecreate(PageContext context, int stem, long version, int zone, long base, long span, Value fold, BTreePageRef[] childRefs, Value[] knotKeys)static BTreeNodecreate(PageContext context, int stem, long version, long span, Value fold, BTreePageRef[] childRefs, Value[] knotKeys)OrderedMapCursor<Value,Value>cursor()OrderedMapCursor<Value,Value>deltaCursor(long sinceVersion)OrderedMapCursor<Value,Value>depthCursor(int maxDepth)intdiffSize()BTreePagedrop(long lower, long newVersion)BTreeNodeevacuated(int post, long version)SlotfirstEntry()SlotfirstEntry(Value key)static BTreeNodefromValue(BTreePageRef pageRef, Value value)Valueget(Value key)BTreePagegetChild(int index)BTreePageRefgetChildRef(int index)SlotgetEntry(Value key)SlotgetIndex(long index)ValuegetKey(int x)SlotgetSlot(int x)longindexOf(Value key)booleanisEmpty()booleanisNode()SlotlastEntry()BTreePageloadTree(PageLoader pageLoader)ValuemaxKey()ValueminKey()SlotnextEntry(Value key)BTreePageRefpageRef()intpageSize()PageTypepageType()SlotpreviousEntry(Value key)BTreeNodereduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion)BTreePageremoved(Value key, long newVersion)voidsoften(long version)BTreeNodesplit(int x, long newVersion)BTreeNodesplitLeft(int x, long newVersion)BTreeNodesplitRight(int x, long newVersion)BTreePagetake(long upper, long newVersion)ValuetoHeader()StringtoString()ValuetoValue()longtreeSize()BTreeNodeuncommitted(long version)BTreePageupdated(Value key, Value newValue, long newVersion)longversion()voidwriteDiff(Output<?> output)voidwritePage(Output<?> output)-
Methods inherited from class swim.db.BTreePage
empty, isBTreePage
-
Methods inherited from class swim.db.Page
base, fold, isLeaf, isQTreePage, isSTreePage, isUTreePage, pageContext, post, printTree, span, stem, toDebugString, zone
-
-
-
-
Constructor Detail
-
BTreeNode
protected BTreeNode(BTreePageRef pageRef, long version, BTreePageRef[] childRefs, Value[] knotKeys)
-
-
Method Detail
-
pageRef
public BTreePageRef pageRef()
-
childCount
public int childCount()
- Specified by:
childCountin classPage
-
getChildRef
public BTreePageRef getChildRef(int index)
- Specified by:
getChildRefin classBTreePage
-
containsKey
public boolean containsKey(Value key)
- Specified by:
containsKeyin classBTreePage
-
containsValue
public boolean containsValue(Value value)
- Specified by:
containsValuein classBTreePage
-
firstEntry
public Slot firstEntry(Value key)
- Specified by:
firstEntryin classBTreePage
-
firstEntry
public Slot firstEntry()
- Specified by:
firstEntryin classBTreePage
-
previousEntry
public Slot previousEntry(Value key)
- Specified by:
previousEntryin classBTreePage
-
splitLeft
public BTreeNode splitLeft(int x, long newVersion)
-
splitRight
public BTreeNode splitRight(int x, long newVersion)
- Specified by:
splitRightin classBTreePage
-
reduced
public BTreeNode reduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion)
-
evacuated
public BTreeNode evacuated(int post, long version)
-
committed
public BTreeNode committed(int zone, long base, long version)
-
uncommitted
public BTreeNode uncommitted(long version)
- Specified by:
uncommittedin classBTreePage
-
loadTree
public BTreePage loadTree(PageLoader pageLoader)
-
cursor
public OrderedMapCursor<Value,Value> cursor()
-
depthCursor
public OrderedMapCursor<Value,Value> depthCursor(int maxDepth)
- Specified by:
depthCursorin classBTreePage
-
deltaCursor
public OrderedMapCursor<Value,Value> deltaCursor(long sinceVersion)
- Specified by:
deltaCursorin classBTreePage
-
create
public static BTreeNode create(PageContext context, int stem, long version, int post, int zone, long base, long span, Value fold, BTreePageRef[] childRefs, Value[] knotKeys)
-
create
public static BTreeNode create(PageContext context, int stem, long version, int zone, long base, long span, Value fold, BTreePageRef[] childRefs, Value[] knotKeys)
-
create
public static BTreeNode create(PageContext context, int stem, long version, long span, Value fold, BTreePageRef[] childRefs, Value[] knotKeys)
-
fromValue
public static BTreeNode fromValue(BTreePageRef pageRef, Value value)
-
-