java.lang.Object
swim.db.Tree
swim.db.STree
-
Constructor Summary
ConstructorDescriptionSTree
(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
Modifier and TypeMethodDescriptionvoid
cleared
(long newVersion) committed
(int zone, long base, long version, long time) boolean
void
copyToArray
(Object[] array, int offset) cursor()
deltaCursor
(long sinceVersion) depthCursor
(int maxDepth) int
diffSize
(long version) drop
(long lower, long newVersion, int newPost) evacuated
(int post, long version) get
(long index) getEntry
(long index) long
boolean
isEmpty()
boolean
isResident
(boolean isResident) boolean
isTransient
(boolean isTransient) long
lastIndexOf
(Object object) load()
long
reduced
(Value identity, CombinerFunction<? super Value, Value> accumulator, CombinerFunction<Value, Value> combiner, long newVersion, int newPost) removed
(long index, long newVersion, int newPost) rootPage()
rootRef()
seed()
void
soften
(long version) take
(long upper, long newVersion, int newPost) long
treeSize()
treeType()
uncommitted
(long version) void
Methods inherited from class swim.db.Tree
fold, post, settings, setTreeDelegate, span, stem, toDiff, treeDelegate
-
Constructor Details
-
STree
public STree(TreeContext treeContext, STreePageRef rootRef, Seed seed, boolean isResident, boolean isTransient) -
STree
-
STree
public STree(TreeContext treeContext, int stem, long version, boolean isResident, boolean isTransient)
-
-
Method Details
-
treeType
-
treeContext
- Specified by:
treeContext
in classTree
-
rootRef
-
rootPage
-
seed
-
isResident
public boolean isResident()- Specified by:
isResident
in classTree
-
isResident
- Specified by:
isResident
in classTree
-
isTransient
public boolean isTransient()- Specified by:
isTransient
in classTree
-
isTransient
- Specified by:
isTransient
in classTree
-
isEmpty
public boolean isEmpty() -
contains
-
get
-
getEntry
-
updated
-
inserted
-
appended
-
prepended
-
removed
-
removed
-
drop
-
take
-
cleared
-
indexOf
-
lastIndexOf
-
lookup
-
copyToArray
-
diffSize
public int diffSize(long version) -
treeSize
public long treeSize() -
reduced
public STree reduced(Value identity, CombinerFunction<? super Value, Value> accumulator, CombinerFunction<Value, Value> combiner, long newVersion, int newPost) -
evacuated
-
committed
-
uncommitted
- Specified by:
uncommitted
in classTree
-
writeDiff
-
buildDiff
-
load
-
soften
public void soften(long version) -
cursor
-
depthCursor
-
deltaCursor
-