java.lang.Object
swim.db.Tree
swim.db.BTree
-
Constructor Summary
ConstructorsConstructorDescriptionBTree(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 TypeMethodDescriptionvoidcleared(long newVersion) committed(int zone, long base, long version, long time) booleancontainsKey(Value key) booleancontainsValue(Value value) cursor()depthCursor(int maxDepth) intdiffSize(long version) drop(long lower, long newVersion, int newPost) evacuated(int post, long version) firstEntry(Value key) firstKey()getIndex(long index) longbooleanisEmpty()booleanisResident(boolean isResident) booleanisTransient(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()voidsoften(long version) take(long upper, long newVersion, int newPost) longtreeSize()treeType()uncommitted(long version) voidMethods 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:
treeContextin classTree
-
rootRef
-
rootPage
-
seed
-
isResident
public boolean isResident()- Specified by:
isResidentin classTree
-
isResident
- Specified by:
isResidentin classTree
-
isTransient
public boolean isTransient()- Specified by:
isTransientin classTree
-
isTransient
- Specified by:
isTransientin 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:
uncommittedin classTree
-
writeDiff
-
buildDiff
-
load
-
soften
public void soften(long version) -
cursor
-
depthCursor
-