java.lang.Object
swim.db.Page
swim.db.BTreePage
swim.db.BTreeNode
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBTreeNode(BTreePageRef pageRef, long version, BTreePageRef[] childRefs, swim.structure.Value[] knotKeys) -
Method Summary
Modifier and TypeMethodDescriptionintarity()balanced(long newVersion) voidintcommitted(int zone, long base, long version) booleancontainsKey(swim.structure.Value key) booleancontainsValue(swim.structure.Value value) static BTreeNodecreate(PageContext context, int stem, long version, int post, int zone, long base, long span, swim.structure.Value fold, BTreePageRef[] childRefs, swim.structure.Value[] knotKeys) static BTreeNodecreate(PageContext context, int stem, long version, int zone, long base, long span, swim.structure.Value fold, BTreePageRef[] childRefs, swim.structure.Value[] knotKeys) static BTreeNodecreate(PageContext context, int stem, long version, long span, swim.structure.Value fold, BTreePageRef[] childRefs, swim.structure.Value[] knotKeys) swim.util.OrderedMapCursor<swim.structure.Value,swim.structure.Value> cursor()swim.util.OrderedMapCursor<swim.structure.Value,swim.structure.Value> deltaCursor(long sinceVersion) swim.util.OrderedMapCursor<swim.structure.Value,swim.structure.Value> depthCursor(int maxDepth) intdiffSize()drop(long lower, long newVersion) evacuated(int post, long version) swim.structure.Slotswim.structure.SlotfirstEntry(swim.structure.Value key) static BTreeNodefromValue(BTreePageRef pageRef, swim.structure.Value value) swim.structure.Valueget(swim.structure.Value key) getChild(int index) getChildRef(int index) swim.structure.SlotgetEntry(swim.structure.Value key) swim.structure.SlotgetIndex(long index) swim.structure.ValuegetKey(int x) swim.structure.SlotgetSlot(int x) longindexOf(swim.structure.Value key) booleanisEmpty()booleanisNode()swim.structure.SlotloadTree(PageLoader pageLoader) swim.structure.ValuemaxKey()swim.structure.ValueminKey()swim.structure.SlotnextEntry(swim.structure.Value key) pageRef()intpageSize()pageType()swim.structure.SlotpreviousEntry(swim.structure.Value key) 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 newVersion) voidsoften(long version) split(int x, long newVersion) splitLeft(int x, long newVersion) splitRight(int x, long newVersion) take(long upper, long newVersion) swim.structure.ValuetoHeader()toString()swim.structure.ValuetoValue()longtreeSize()uncommitted(long version) updated(swim.structure.Value key, swim.structure.Value newValue, long newVersion) longversion()voidwriteDiff(swim.codec.Output<?> output) voidwritePage(swim.codec.Output<?> output) Methods inherited from class swim.db.BTreePage
empty, isBTreePageMethods inherited from class swim.db.Page
base, fold, isLeaf, isQTreePage, isSTreePage, isUTreePage, pageContext, post, printTree, span, stem, toDebugString, zone
-
Constructor Details
-
BTreeNode
protected BTreeNode(BTreePageRef pageRef, long version, BTreePageRef[] childRefs, swim.structure.Value[] knotKeys)
-
-
Method Details
-
isNode
public boolean isNode() -
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 classBTreePage
-
getChild
-
getSlot
public swim.structure.Slot getSlot(int x) -
getKey
public swim.structure.Value getKey(int x) -
minKey
public swim.structure.Value minKey() -
maxKey
public swim.structure.Value maxKey() -
containsKey
public boolean containsKey(swim.structure.Value key) - Specified by:
containsKeyin classBTreePage
-
containsValue
public boolean containsValue(swim.structure.Value value) - Specified by:
containsValuein classBTreePage
-
indexOf
public long indexOf(swim.structure.Value key) -
get
public swim.structure.Value get(swim.structure.Value key) -
getEntry
public swim.structure.Slot getEntry(swim.structure.Value key) -
getIndex
public swim.structure.Slot getIndex(long index) -
firstEntry
public swim.structure.Slot firstEntry(swim.structure.Value key) - Specified by:
firstEntryin classBTreePage
-
firstEntry
public swim.structure.Slot firstEntry()- Specified by:
firstEntryin classBTreePage
-
lastEntry
public swim.structure.Slot lastEntry() -
nextEntry
public swim.structure.Slot nextEntry(swim.structure.Value key) -
previousEntry
public swim.structure.Slot previousEntry(swim.structure.Value key) - Specified by:
previousEntryin classBTreePage
-
updated
-
removed
-
drop
-
take
-
balanced
-
split
-
splitLeft
-
splitRight
- Specified by:
splitRightin classBTreePage
-
pageSize
public int pageSize() -
diffSize
public int diffSize() -
treeSize
public long treeSize() -
toHeader
public swim.structure.Value toHeader() -
toValue
public swim.structure.Value toValue() -
reduced
public BTreeNode 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 classBTreePage
-
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.OrderedMapCursor<swim.structure.Value,swim.structure.Value> cursor() -
depthCursor
public swim.util.OrderedMapCursor<swim.structure.Value,swim.structure.Value> depthCursor(int maxDepth) - Specified by:
depthCursorin classBTreePage
-
deltaCursor
public swim.util.OrderedMapCursor<swim.structure.Value,swim.structure.Value> deltaCursor(long sinceVersion) - Specified by:
deltaCursorin classBTreePage
-
toString
-
create
public static BTreeNode create(PageContext context, int stem, long version, int post, int zone, long base, long span, swim.structure.Value fold, BTreePageRef[] childRefs, swim.structure.Value[] knotKeys) -
create
public static BTreeNode create(PageContext context, int stem, long version, int zone, long base, long span, swim.structure.Value fold, BTreePageRef[] childRefs, swim.structure.Value[] knotKeys) -
create
public static BTreeNode create(PageContext context, int stem, long version, long span, swim.structure.Value fold, BTreePageRef[] childRefs, swim.structure.Value[] knotKeys) -
fromValue
-