- java.lang.Object
-
- swim.db.Tree
-
- swim.db.BTree
-
public final class BTree extends Tree
-
-
Constructor Summary
Constructors Constructor Description BTree(TreeContext treeContext, int stem, long version, boolean isResident, boolean isTransient)BTree(TreeContext treeContext, BTreePageRef rootRef, Seed seed, boolean isResident, boolean isTransient)BTree(TreeContext treeContext, Seed seed, boolean isResident, boolean isTransient)
-
Method Summary
Modifier and Type Method Description BTreecleared(long newVersion)BTreecommitted(int zone, long base, long version, long time)booleancontainsKey(Value key)booleancontainsValue(Value value)OrderedMapCursor<Value,Value>cursor()OrderedMapCursor<Value,Value>depthCursor(int maxDepth)intdiffSize(long version)BTreedrop(long lower, long newVersion, int newPost)BTreeevacuated(int post, long version)SlotfirstEntry()SlotfirstEntry(Value key)ValuefirstKey()ValuefirstValue()Valueget(Value key)SlotgetEntry(Value key)SlotgetIndex(long index)longindexOf(Value key)booleanisEmpty()booleanisResident()BTreeisResident(boolean isResident)booleanisTransient()BTreeisTransient(boolean isTransient)SlotlastEntry()ValuelastKey()ValuelastValue()BTreeload()voidloadAsync(Cont<Tree> cont)SlotnextEntry(Value key)ValuenextKey(Value key)ValuenextValue(Value key)SlotpreviousEntry(Value key)ValuepreviousKey(Value key)ValuepreviousValue(Value key)BTreereduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion, int newPost)BTreeremoved(Value key, long newVersion, int newPost)BTreePageRefrootRef()Seedseed()voidsoften(long version)BTreetake(long upper, long newVersion, int newPost)TreeContexttreeContext()longtreeSize()TreeTypetreeType()BTreeuncommitted(long version)BTreeupdated(Value key, Value newValue, long newVersion, int newPost)voidwriteDiff(Output<?> output, long version)-
Methods inherited from class swim.db.Tree
fold, post, settings, setTreeDelegate, span, stem, treeDelegate
-
-
-
-
Constructor Detail
-
BTree
public BTree(TreeContext treeContext, BTreePageRef rootRef, Seed seed, boolean isResident, boolean isTransient)
-
BTree
public BTree(TreeContext treeContext, Seed seed, boolean isResident, boolean isTransient)
-
BTree
public BTree(TreeContext treeContext, int stem, long version, boolean isResident, boolean isTransient)
-
-
Method Detail
-
treeContext
public TreeContext treeContext()
- Specified by:
treeContextin classTree
-
rootRef
public BTreePageRef rootRef()
-
isResident
public boolean isResident()
- Specified by:
isResidentin classTree
-
isResident
public BTree isResident(boolean isResident)
- Specified by:
isResidentin classTree
-
isTransient
public boolean isTransient()
- Specified by:
isTransientin classTree
-
isTransient
public BTree isTransient(boolean isTransient)
- Specified by:
isTransientin classTree
-
containsKey
public boolean containsKey(Value key)
-
containsValue
public boolean containsValue(Value value)
-
indexOf
public long indexOf(Value key)
-
getIndex
public Slot getIndex(long index)
-
firstKey
public Value firstKey()
-
firstValue
public Value firstValue()
-
firstEntry
public Slot firstEntry()
-
lastKey
public Value lastKey()
-
lastValue
public Value lastValue()
-
lastEntry
public Slot lastEntry()
-
drop
public BTree drop(long lower, long newVersion, int newPost)
-
take
public BTree take(long upper, long newVersion, int newPost)
-
cleared
public BTree cleared(long newVersion)
-
reduced
public BTree reduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion, int newPost)
-
committed
public BTree committed(int zone, long base, long version, long time)
-
uncommitted
public BTree uncommitted(long version)
- Specified by:
uncommittedin classTree
-
writeDiff
public void writeDiff(Output<?> output, long version)
-
load
public BTree load() throws InterruptedException
- Specified by:
loadin classTree- Throws:
InterruptedException
-
cursor
public OrderedMapCursor<Value,Value> cursor()
-
depthCursor
public OrderedMapCursor<Value,Value> depthCursor(int maxDepth)
-
-