java.lang.Object
swim.db.Tree
swim.db.STree
-
Constructor Summary
ConstructorsConstructorDescriptionSTree(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 TypeMethodDescriptionvoidcleared(long newVersion) committed(int zone, long base, long version, long time) booleanvoidcopyToArray(Object[] array, int offset) cursor()deltaCursor(long sinceVersion) depthCursor(int maxDepth) intdiffSize(long version) drop(long lower, long newVersion, int newPost) evacuated(int post, long version) get(long index) getEntry(long index) longbooleanisEmpty()booleanisResident(boolean isResident) booleanisTransient(boolean isTransient) longlastIndexOf(Object object) load()longreduced(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()voidsoften(long version) take(long upper, long newVersion, int newPost) longtreeSize()treeType()uncommitted(long version) voidMethods 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:
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() -
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:
uncommittedin classTree
-
writeDiff
-
buildDiff
-
load
-
soften
public void soften(long version) -
cursor
-
depthCursor
-
deltaCursor
-