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(swim.structure.Value key) booleancontainsValue(swim.structure.Value value) swim.util.OrderedMapCursor<swim.structure.Value,swim.structure.Value> cursor()swim.util.OrderedMapCursor<swim.structure.Value,swim.structure.Value> depthCursor(int maxDepth) intdiffSize(long version) drop(long lower, long newVersion, int newPost) evacuated(int post, long version) swim.structure.Slotswim.structure.SlotfirstEntry(swim.structure.Value key) swim.structure.ValuefirstKey()swim.structure.Valueswim.structure.Valueget(swim.structure.Value key) swim.structure.SlotgetEntry(swim.structure.Value key) swim.structure.SlotgetIndex(long index) longindexOf(swim.structure.Value key) booleanisEmpty()booleanisResident(boolean isResident) booleanisTransient(boolean isTransient) swim.structure.Slotswim.structure.ValuelastKey()swim.structure.Valueload()swim.structure.SlotnextEntry(swim.structure.Value key) swim.structure.ValuenextKey(swim.structure.Value key) swim.structure.ValuenextValue(swim.structure.Value key) swim.structure.SlotpreviousEntry(swim.structure.Value key) swim.structure.ValuepreviousKey(swim.structure.Value key) swim.structure.ValuepreviousValue(swim.structure.Value key) reduced(swim.structure.Value identity, swim.util.CombinerFunction<? super swim.structure.Value, swim.structure.Value> accumulator, swim.util.CombinerFunction<swim.structure.Value, swim.structure.Value> combiner, long newVersion, int newPost) removed(swim.structure.Value key, long newVersion, int newPost) rootPage()rootRef()seed()voidsoften(long version) take(long upper, long newVersion, int newPost) longtreeSize()treeType()uncommitted(long version) updated(swim.structure.Value key, swim.structure.Value newValue, long newVersion, int newPost) voidwriteDiff(swim.codec.Output<?> output, long version) 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:
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
public boolean containsKey(swim.structure.Value key) -
containsValue
public boolean containsValue(swim.structure.Value value) -
indexOf
public long indexOf(swim.structure.Value key) -
get
public swim.structure.Value get(swim.structure.Value key) -
getEntry
public swim.structure.Slot getEntry(swim.structure.Value key) -
getIndex
public swim.structure.Slot getIndex(long index) -
firstEntry
public swim.structure.Slot firstEntry(swim.structure.Value key) -
firstKey
public swim.structure.Value firstKey() -
firstValue
public swim.structure.Value firstValue() -
firstEntry
public swim.structure.Slot firstEntry() -
lastKey
public swim.structure.Value lastKey() -
lastValue
public swim.structure.Value lastValue() -
lastEntry
public swim.structure.Slot lastEntry() -
nextKey
public swim.structure.Value nextKey(swim.structure.Value key) -
nextValue
public swim.structure.Value nextValue(swim.structure.Value key) -
nextEntry
public swim.structure.Slot nextEntry(swim.structure.Value key) -
previousKey
public swim.structure.Value previousKey(swim.structure.Value key) -
previousValue
public swim.structure.Value previousValue(swim.structure.Value key) -
previousEntry
public swim.structure.Slot previousEntry(swim.structure.Value key) -
updated
public BTree updated(swim.structure.Value key, swim.structure.Value newValue, long newVersion, int newPost) -
removed
-
drop
-
take
-
cleared
-
diffSize
public int diffSize(long version) -
treeSize
public long treeSize() -
reduced
public BTree reduced(swim.structure.Value identity, swim.util.CombinerFunction<? super swim.structure.Value, swim.structure.Value> accumulator, swim.util.CombinerFunction<swim.structure.Value, swim.structure.Value> combiner, long newVersion, int newPost) -
evacuated
-
committed
-
uncommitted
- Specified by:
uncommittedin classTree
-
writeDiff
public void writeDiff(swim.codec.Output<?> output, long version) -
buildDiff
-
load
-
soften
public void soften(long version) -
cursor
public swim.util.OrderedMapCursor<swim.structure.Value,swim.structure.Value> cursor() -
depthCursor
public swim.util.OrderedMapCursor<swim.structure.Value,swim.structure.Value> depthCursor(int maxDepth)
-