- 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 STreeappended(Value key, Value newValue, long newVersion, int newPost)voidbuildDiff(long version, Builder<Page,?> builder)STreecleared(long newVersion)STreecommitted(int zone, long base, long version, long time)booleancontains(Value value)voidcopyToArray(Object[] array, int offset)Cursor<Slot>cursor()Cursor<Slot>deltaCursor(long sinceVersion)Cursor<Slot>depthCursor(int maxDepth)intdiffSize(long version)STreedrop(long lower, long newVersion, int newPost)STreeevacuated(int post, long version)Valueget(long index)SlotgetEntry(long index)longindexOf(Object object)STreeinserted(long index, Value key, Value newValue, long newVersion, int newPost)booleanisEmpty()booleanisResident()STreeisResident(boolean isResident)booleanisTransient()STreeisTransient(boolean isTransient)longlastIndexOf(Object object)STreeload()longlookup(long start, Object key)STreeprepended(Value key, Value newValue, long newVersion, int newPost)STreereduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion, int newPost)STreeremoved(long index, long newVersion, int newPost)STreeremoved(Object object, long newVersion, int newPost)STreePagerootPage()STreePageRefrootRef()Seedseed()voidsoften(long version)STreetake(long upper, long newVersion, int newPost)TreeContexttreeContext()longtreeSize()TreeTypetreeType()STreeuncommitted(long version)STreeupdated(long index, Value newValue, long newVersion, int newPost)voidwriteDiff(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:
treeContextin classTree
-
rootRef
public STreePageRef rootRef()
-
isResident
public boolean isResident()
- Specified by:
isResidentin classTree
-
isResident
public STree isResident(boolean isResident)
- Specified by:
isResidentin classTree
-
isTransient
public boolean isTransient()
- Specified by:
isTransientin classTree
-
isTransient
public STree isTransient(boolean isTransient)
- Specified by:
isTransientin 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:
uncommittedin classTree
-
writeDiff
public void writeDiff(Output<?> output, long version)
-
-