- 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildDiff(long version, Builder<Page,?> builder)
BTree
cleared(long newVersion)
BTree
committed(int zone, long base, long version, long time)
boolean
containsKey(Value key)
boolean
containsValue(Value value)
OrderedMapCursor<Value,Value>
cursor()
OrderedMapCursor<Value,Value>
depthCursor(int maxDepth)
int
diffSize(long version)
BTree
drop(long lower, long newVersion, int newPost)
BTree
evacuated(int post, long version)
Slot
firstEntry()
Slot
firstEntry(Value key)
Value
firstKey()
Value
firstValue()
Value
get(Value key)
Slot
getEntry(Value key)
Slot
getIndex(long index)
long
indexOf(Value key)
boolean
isEmpty()
boolean
isResident()
BTree
isResident(boolean isResident)
boolean
isTransient()
BTree
isTransient(boolean isTransient)
Slot
lastEntry()
Value
lastKey()
Value
lastValue()
BTree
load()
Slot
nextEntry(Value key)
Value
nextKey(Value key)
Value
nextValue(Value key)
Slot
previousEntry(Value key)
Value
previousKey(Value key)
Value
previousValue(Value key)
BTree
reduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion, int newPost)
BTree
removed(Value key, long newVersion, int newPost)
BTreePage
rootPage()
BTreePageRef
rootRef()
Seed
seed()
void
soften(long version)
BTree
take(long upper, long newVersion, int newPost)
TreeContext
treeContext()
long
treeSize()
TreeType
treeType()
BTree
uncommitted(long version)
BTree
updated(Value key, Value newValue, long newVersion, int newPost)
void
writeDiff(Output<?> output, long version)
-
Methods inherited from class swim.db.Tree
fold, post, settings, setTreeDelegate, span, stem, toDiff, 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:
treeContext
in classTree
-
rootRef
public BTreePageRef rootRef()
-
isResident
public boolean isResident()
- Specified by:
isResident
in classTree
-
isResident
public BTree isResident(boolean isResident)
- Specified by:
isResident
in classTree
-
isTransient
public boolean isTransient()
- Specified by:
isTransient
in classTree
-
isTransient
public BTree isTransient(boolean isTransient)
- Specified by:
isTransient
in 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:
uncommitted
in classTree
-
writeDiff
public void writeDiff(Output<?> output, long version)
-
cursor
public OrderedMapCursor<Value,Value> cursor()
-
depthCursor
public OrderedMapCursor<Value,Value> depthCursor(int maxDepth)
-
-