- java.lang.Object
-
- swim.db.Tree
-
- swim.db.STree
-
public final class STree extends Tree
-
-
Constructor Summary
Constructors Constructor Description STree(TreeContext treeContext, int stem, long version, boolean isResident, boolean isTransient)
STree(TreeContext treeContext, Seed seed, boolean isResident, boolean isTransient)
STree(TreeContext treeContext, STreePageRef rootRef, Seed seed, boolean isResident, boolean isTransient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description STree
appended(Value key, Value newValue, long newVersion, int newPost)
void
buildDiff(long version, Builder<Page,?> builder)
STree
cleared(long newVersion)
STree
committed(int zone, long base, long version, long time)
boolean
contains(Value value)
void
copyToArray(Object[] array, int offset)
Cursor<Slot>
cursor()
Cursor<Slot>
deltaCursor(long sinceVersion)
Cursor<Slot>
depthCursor(int maxDepth)
int
diffSize(long version)
STree
drop(long lower, long newVersion, int newPost)
STree
evacuated(int post, long version)
Value
get(long index)
Slot
getEntry(long index)
long
indexOf(Object object)
STree
inserted(long index, Value key, Value newValue, long newVersion, int newPost)
boolean
isEmpty()
boolean
isResident()
STree
isResident(boolean isResident)
boolean
isTransient()
STree
isTransient(boolean isTransient)
long
lastIndexOf(Object object)
STree
load()
long
lookup(long start, Object key)
STree
prepended(Value key, Value newValue, long newVersion, int newPost)
STree
reduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion, int newPost)
STree
removed(long index, long newVersion, int newPost)
STree
removed(Object object, long newVersion, int newPost)
STreePage
rootPage()
STreePageRef
rootRef()
Seed
seed()
void
soften(long version)
STree
take(long upper, long newVersion, int newPost)
TreeContext
treeContext()
long
treeSize()
TreeType
treeType()
STree
uncommitted(long version)
STree
updated(long index, 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
-
STree
public STree(TreeContext treeContext, STreePageRef rootRef, Seed seed, boolean isResident, boolean isTransient)
-
STree
public STree(TreeContext treeContext, Seed seed, boolean isResident, boolean isTransient)
-
STree
public STree(TreeContext treeContext, int stem, long version, boolean isResident, boolean isTransient)
-
-
Method Detail
-
treeContext
public TreeContext treeContext()
- Specified by:
treeContext
in classTree
-
rootRef
public STreePageRef rootRef()
-
isResident
public boolean isResident()
- Specified by:
isResident
in classTree
-
isResident
public STree isResident(boolean isResident)
- Specified by:
isResident
in classTree
-
isTransient
public boolean isTransient()
- Specified by:
isTransient
in classTree
-
isTransient
public STree isTransient(boolean isTransient)
- Specified by:
isTransient
in classTree
-
contains
public boolean contains(Value value)
-
get
public Value get(long index)
-
getEntry
public Slot getEntry(long index)
-
inserted
public STree inserted(long index, Value key, Value newValue, long newVersion, int newPost)
-
removed
public STree removed(long index, long newVersion, int newPost)
-
drop
public STree drop(long lower, long newVersion, int newPost)
-
take
public STree take(long upper, long newVersion, int newPost)
-
cleared
public STree cleared(long newVersion)
-
indexOf
public long indexOf(Object object)
-
lastIndexOf
public long lastIndexOf(Object object)
-
lookup
public long lookup(long start, Object key)
-
copyToArray
public void copyToArray(Object[] array, int offset)
-
reduced
public STree reduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion, int newPost)
-
committed
public STree committed(int zone, long base, long version, long time)
-
uncommitted
public STree uncommitted(long version)
- Specified by:
uncommitted
in classTree
-
writeDiff
public void writeDiff(Output<?> output, long version)
-
-