- 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, Slot[] slots)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intarity()BTreePagebalanced(long newVersion)intchildCount()BTreeLeafcommitted(int zone, long base, long version)booleancontainsKey(Value key)booleancontainsValue(Value value)static BTreeLeafcreate(PageContext context, int stem, long version, int zone, long base, Value fold, Slot[] slots)static BTreeLeafcreate(PageContext context, int stem, long version, Value fold, Slot[] slots)OrderedMapCursor<Value,Value>cursor()OrderedMapCursor<Value,Value>deltaCursor(long sinceVersion)OrderedMapCursor<Value,Value>depthCursor(int maxDepth)intdiffSize()BTreePagedrop(long lower, long newVersion)static BTreeLeafempty(PageContext context, int stem, long version)BTreeLeafevacuated(int post, long version)SlotfirstEntry()SlotfirstEntry(Value key)static BTreeLeaffromValue(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()booleanisLeaf()SlotlastEntry()voidloadTreeAsync(PageLoader pageLoader, Cont<Page> cont)ValuemaxKey()ValueminKey()SlotnextEntry(Value key)BTreePageRefpageRef()intpageSize()PageTypepageType()SlotpreviousEntry(Value key)BTreeLeafreduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion)BTreeLeafremoved(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)ValuetoHeader()StringtoString()ValuetoValue()longtreeSize()BTreeLeafuncommitted(long version)BTreePageupdated(Value key, Value newValue, long newVersion)longversion()voidwriteDiff(Output<?> output)voidwritePage(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, 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(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 BTreeLeaf splitLeft(int x, long newVersion)
-
splitRight
public BTreeLeaf splitRight(int x, long newVersion)
- Specified by:
splitRightin classBTreePage
-
reduced
public BTreeLeaf reduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,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
-
loadTreeAsync
public void loadTreeAsync(PageLoader pageLoader, Cont<Page> cont)
- Specified by:
loadTreeAsyncin classPage
-
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 BTreeLeaf create(PageContext context, int stem, long version, int zone, long base, Value fold, Slot[] slots)
-
create
public static BTreeLeaf create(PageContext context, int stem, long version, Value fold, Slot[] slots)
-
empty
public static BTreeLeaf empty(PageContext context, int stem, long version)
-
fromValue
public static BTreeLeaf fromValue(BTreePageRef pageRef, Value value)
-
-