java.lang.Object
swim.db.Tree
swim.db.BTree
-
Constructor Summary
ConstructorDescriptionBTree
(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 TypeMethodDescriptionvoid
cleared
(long newVersion) committed
(int zone, long base, long version, long time) boolean
containsKey
(Value key) boolean
containsValue
(Value value) cursor()
depthCursor
(int maxDepth) int
diffSize
(long version) drop
(long lower, long newVersion, int newPost) evacuated
(int post, long version) firstEntry
(Value key) firstKey()
getIndex
(long index) long
boolean
isEmpty()
boolean
isResident
(boolean isResident) boolean
isTransient
(boolean isTransient) lastKey()
load()
previousEntry
(Value key) previousKey
(Value key) previousValue
(Value key) reduced
(Value identity, CombinerFunction<? super Value, Value> accumulator, CombinerFunction<Value, Value> combiner, long newVersion, int newPost) rootPage()
rootRef()
seed()
void
soften
(long version) take
(long upper, long newVersion, int newPost) long
treeSize()
treeType()
uncommitted
(long version) void
Methods inherited from class swim.db.Tree
fold, post, settings, setTreeDelegate, span, stem, toDiff, treeDelegate
-
Constructor Details
-
BTree
public BTree(TreeContext treeContext, BTreePageRef rootRef, Seed seed, boolean isResident, boolean isTransient) -
BTree
-
BTree
public BTree(TreeContext treeContext, int stem, long version, boolean isResident, boolean isTransient)
-
-
Method Details
-
treeType
-
treeContext
- Specified by:
treeContext
in classTree
-
rootRef
-
rootPage
-
seed
-
isResident
public boolean isResident()- Specified by:
isResident
in classTree
-
isResident
- Specified by:
isResident
in classTree
-
isTransient
public boolean isTransient()- Specified by:
isTransient
in classTree
-
isTransient
- Specified by:
isTransient
in classTree
-
isEmpty
public boolean isEmpty() -
containsKey
-
containsValue
-
indexOf
-
get
-
getEntry
-
getIndex
-
firstEntry
-
firstKey
-
firstValue
-
firstEntry
-
lastKey
-
lastValue
-
lastEntry
-
nextKey
-
nextValue
-
nextEntry
-
previousKey
-
previousValue
-
previousEntry
-
updated
-
removed
-
drop
-
take
-
cleared
-
diffSize
public int diffSize(long version) -
treeSize
public long treeSize() -
reduced
public BTree reduced(Value identity, CombinerFunction<? super Value, Value> accumulator, CombinerFunction<Value, Value> combiner, long newVersion, int newPost) -
evacuated
-
committed
-
uncommitted
- Specified by:
uncommitted
in classTree
-
writeDiff
-
buildDiff
-
load
-
soften
public void soften(long version) -
cursor
-
depthCursor
-