- 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 void
buildDiff(long version, Builder<Page,?> builder)
QTree
cleared(long newVersion)
QTree
committed(int zone, long base, long version, long time)
boolean
containsKey(Value key)
boolean
containsKey(Value key, long x, long y)
boolean
containsValue(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)
int
diffSize(long version)
QTree
evacuated(int post, long version)
Value
get(Value key)
Value
get(Value key, long x, long y)
boolean
isEmpty()
boolean
isResident()
QTree
isResident(boolean isResident)
boolean
isTransient()
QTree
isTransient(boolean isTransient)
QTree
load()
QTree
moved(Value key, long oldX, long oldY, long newX, long newY, Value newValue, long newVersion, int newPost)
QTree
reduced(Value identity, CombinerFunction<? super Value,Value> accumulator, CombinerFunction<Value,Value> combiner, long newVersion, int newPost)
QTree
removed(Value key, long x, long y, long newVersion, int newPost)
QTreePage
rootPage()
QTreePageRef
rootRef()
Seed
seed()
void
soften(long version)
TreeContext
treeContext()
long
treeSize()
TreeType
treeType()
QTree
uncommitted(long version)
QTree
updated(Value key, long x, long y, 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
-
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:
treeContext
in classTree
-
rootRef
public QTreePageRef rootRef()
-
isResident
public boolean isResident()
- Specified by:
isResident
in classTree
-
isResident
public QTree isResident(boolean isResident)
- Specified by:
isResident
in classTree
-
isTransient
public boolean isTransient()
- Specified by:
isTransient
in classTree
-
isTransient
public QTree isTransient(boolean isTransient)
- Specified by:
isTransient
in 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:
uncommitted
in classTree
-
writeDiff
public void writeDiff(Output<?> output, long version)
-
-