- java.lang.Object
-
- swim.db.Tree
-
- swim.db.QTree
-
public final class QTree extends Tree
-
-
Constructor Summary
Constructors Constructor Description QTree(TreeContext treeContext, int stem, long version, boolean isResident, boolean isTransient)QTree(TreeContext treeContext, QTreePageRef rootRef, Seed seed, boolean isResident, boolean isTransient)QTree(TreeContext treeContext, Seed seed, boolean isResident, boolean isTransient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QTreecleared(long newVersion)QTreecommitted(int zone, long base, long version, long time)booleancontainsKey(Value key)booleancontainsKey(Value key, long x, long y)booleancontainsValue(Value value)Cursor<Slot>cursor()Cursor<Slot>cursor(long x, long y)Cursor<Slot>deltaCursor(long sinceVersion)Cursor<Slot>deltaCursor(long x, long y, long sinceVersion)Cursor<Slot>depthCursor(int maxDepth)Cursor<Slot>depthCursor(long x, long y, int maxDepth)intdiffSize(long version)QTreeevacuated(int post, long version)Valueget(Value key)Valueget(Value key, long x, long y)booleanisEmpty()booleanisResident()QTreeisResident(boolean isResident)booleanisTransient()QTreeisTransient(boolean isTransient)QTreeload()voidloadAsync(Cont<Tree> cont)QTreemoved(Value key, long oldX, long oldY, long newX, long newY, Value newValue, long newVersion, int newPost)QTreereduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion, int newPost)QTreeremoved(Value key, long x, long y, long newVersion, int newPost)QTreePageRefrootRef()Seedseed()voidsoften(long version)TreeContexttreeContext()longtreeSize()TreeTypetreeType()QTreeuncommitted(long version)QTreeupdated(Value key, long x, long y, Value newValue, long newVersion, int newPost)voidwriteDiff(Output<?> output, long version)-
Methods inherited from class swim.db.Tree
fold, post, settings, setTreeDelegate, span, stem, treeDelegate
-
-
-
-
Constructor Detail
-
QTree
public QTree(TreeContext treeContext, QTreePageRef rootRef, Seed seed, boolean isResident, boolean isTransient)
-
QTree
public QTree(TreeContext treeContext, Seed seed, boolean isResident, boolean isTransient)
-
QTree
public QTree(TreeContext treeContext, int stem, long version, boolean isResident, boolean isTransient)
-
-
Method Detail
-
treeContext
public TreeContext treeContext()
- Specified by:
treeContextin classTree
-
rootRef
public QTreePageRef rootRef()
-
isResident
public boolean isResident()
- Specified by:
isResidentin classTree
-
isResident
public QTree isResident(boolean isResident)
- Specified by:
isResidentin classTree
-
isTransient
public boolean isTransient()
- Specified by:
isTransientin classTree
-
isTransient
public QTree isTransient(boolean isTransient)
- Specified by:
isTransientin classTree
-
containsKey
public boolean containsKey(Value key, long x, long y)
-
containsKey
public boolean containsKey(Value key)
-
containsValue
public boolean containsValue(Value value)
-
updated
public QTree updated(Value key, long x, long y, Value newValue, long newVersion, int newPost)
-
moved
public QTree moved(Value key, long oldX, long oldY, long newX, long newY, Value newValue, long newVersion, int newPost)
-
cleared
public QTree cleared(long newVersion)
-
reduced
public QTree reduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion, int newPost)
-
committed
public QTree committed(int zone, long base, long version, long time)
-
uncommitted
public QTree uncommitted(long version)
- Specified by:
uncommittedin classTree
-
writeDiff
public void writeDiff(Output<?> output, long version)
-
load
public QTree load() throws InterruptedException
- Specified by:
loadin classTree- Throws:
InterruptedException
-
-