- java.lang.Object
-
- swim.db.Page
-
- swim.db.BTreePage
-
- swim.db.BTreeLeaf
-
public final class BTreeLeaf extends BTreePage
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBTreeLeaf(BTreePageRef pageRef, long version, swim.structure.Slot[] slots)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intarity()BTreePagebalanced(long newVersion)voidbuildDiff(swim.util.Builder<Page,?> builder)intchildCount()BTreeLeafcommitted(int zone, long base, long version)booleancontainsKey(swim.structure.Value key)booleancontainsValue(swim.structure.Value value)static BTreeLeafcreate(PageContext context, int stem, long version, int zone, long base, swim.structure.Value fold, swim.structure.Slot[] slots)static BTreeLeafcreate(PageContext context, int stem, long version, swim.structure.Value fold, swim.structure.Slot[] slots)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()BTreePagedrop(long lower, long newVersion)static BTreeLeafempty(PageContext context, int stem, long version)BTreeLeafevacuated(int post, long version)swim.structure.SlotfirstEntry()swim.structure.SlotfirstEntry(swim.structure.Value key)static BTreeLeaffromValue(BTreePageRef pageRef, swim.structure.Value value)swim.structure.Valueget(swim.structure.Value key)BTreePagegetChild(int index)BTreePageRefgetChildRef(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()booleanisLeaf()swim.structure.SlotlastEntry()BTreePageloadTree(PageLoader pageLoader)swim.structure.ValuemaxKey()swim.structure.ValueminKey()swim.structure.SlotnextEntry(swim.structure.Value key)BTreePageRefpageRef()intpageSize()PageTypepageType()swim.structure.SlotpreviousEntry(swim.structure.Value key)BTreeLeafreduced(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)BTreeLeafremoved(swim.structure.Value key, long newVersion)voidsoften(long version)BTreeNodesplit(int x, long newVersion)BTreeLeafsplitLeft(int x, long newVersion)BTreeLeafsplitRight(int x, long newVersion)BTreePagetake(long upper, long newVersion)swim.structure.ValuetoHeader()StringtoString()swim.structure.ValuetoValue()longtreeSize()BTreeLeafuncommitted(long version)BTreePageupdated(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
isBTreePage
-
Methods inherited from class swim.db.Page
base, fold, isNode, isQTreePage, isSTreePage, isUTreePage, pageContext, post, printTree, span, stem, toDebugString, zone
-
-
-
-
Constructor Detail
-
BTreeLeaf
protected BTreeLeaf(BTreePageRef pageRef, long version, swim.structure.Slot[] slots)
-
-
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(swim.structure.Value key)
- Specified by:
containsKeyin classBTreePage
-
containsValue
public boolean containsValue(swim.structure.Value value)
- Specified by:
containsValuein classBTreePage
-
getEntry
public swim.structure.Slot getEntry(swim.structure.Value key)
-
firstEntry
public swim.structure.Slot firstEntry(swim.structure.Value key)
- Specified by:
firstEntryin classBTreePage
-
firstEntry
public swim.structure.Slot firstEntry()
- Specified by:
firstEntryin classBTreePage
-
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
public BTreePage updated(swim.structure.Value key, swim.structure.Value newValue, long newVersion)
-
removed
public BTreeLeaf removed(swim.structure.Value key, long newVersion)
-
splitLeft
public BTreeLeaf splitLeft(int x, long newVersion)
-
splitRight
public BTreeLeaf splitRight(int x, long newVersion)
- Specified by:
splitRightin classBTreePage
-
reduced
public BTreeLeaf 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 BTreeLeaf evacuated(int post, long version)
-
committed
public BTreeLeaf committed(int zone, long base, long version)
-
uncommitted
public BTreeLeaf uncommitted(long version)
- Specified by:
uncommittedin classBTreePage
-
buildDiff
public void buildDiff(swim.util.Builder<Page,?> builder)
-
loadTree
public BTreePage loadTree(PageLoader pageLoader)
-
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
-
create
public static BTreeLeaf create(PageContext context, int stem, long version, int zone, long base, swim.structure.Value fold, swim.structure.Slot[] slots)
-
create
public static BTreeLeaf create(PageContext context, int stem, long version, swim.structure.Value fold, swim.structure.Slot[] slots)
-
empty
public static BTreeLeaf empty(PageContext context, int stem, long version)
-
fromValue
public static BTreeLeaf fromValue(BTreePageRef pageRef, swim.structure.Value value)
-
-