java.lang.Object
swim.db.Tree
swim.db.QTree
-
Constructor Summary
ConstructorsConstructorDescriptionQTree(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
Modifier and TypeMethodDescriptionvoidcleared(long newVersion) committed(int zone, long base, long version, long time) booleancontainsKey(swim.structure.Value key) booleancontainsKey(swim.structure.Value key, long x, long y) booleancontainsValue(swim.structure.Value value) swim.util.Cursor<swim.structure.Slot>cursor()swim.util.Cursor<swim.structure.Slot>cursor(long x, long y) swim.util.Cursor<swim.structure.Slot>deltaCursor(long sinceVersion) swim.util.Cursor<swim.structure.Slot>deltaCursor(long x, long y, long sinceVersion) swim.util.Cursor<swim.structure.Slot>depthCursor(int maxDepth) swim.util.Cursor<swim.structure.Slot>depthCursor(long x, long y, int maxDepth) intdiffSize(long version) evacuated(int post, long version) swim.structure.Valueget(swim.structure.Value key) swim.structure.Valueget(swim.structure.Value key, long x, long y) booleanisEmpty()booleanisResident(boolean isResident) booleanisTransient(boolean isTransient) load()moved(swim.structure.Value key, long oldX, long oldY, long newX, long newY, swim.structure.Value newValue, long newVersion, int newPost) reduced(swim.structure.Value identity, swim.util.CombinerFunction<? super swim.structure.Value, swim.structure.Value> accumulator, swim.util.CombinerFunction<swim.structure.Value, swim.structure.Value> combiner, long newVersion, int newPost) removed(swim.structure.Value key, long x, long y, long newVersion, int newPost) rootPage()rootRef()seed()voidsoften(long version) longtreeSize()treeType()uncommitted(long version) updated(swim.structure.Value key, long x, long y, swim.structure.Value newValue, long newVersion, int newPost) voidwriteDiff(swim.codec.Output<?> output, long version) Methods inherited from class swim.db.Tree
fold, post, settings, setTreeDelegate, span, stem, toDiff, treeDelegate
-
Constructor Details
-
QTree
public QTree(TreeContext treeContext, QTreePageRef rootRef, Seed seed, boolean isResident, boolean isTransient) -
QTree
-
QTree
public QTree(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() -
containsKey
public boolean containsKey(swim.structure.Value key, long x, long y) -
containsKey
public boolean containsKey(swim.structure.Value key) -
containsValue
public boolean containsValue(swim.structure.Value value) -
get
public swim.structure.Value get(swim.structure.Value key, long x, long y) -
get
public swim.structure.Value get(swim.structure.Value key) -
updated
public QTree updated(swim.structure.Value key, long x, long y, swim.structure.Value newValue, long newVersion, int newPost) -
moved
public QTree moved(swim.structure.Value key, long oldX, long oldY, long newX, long newY, swim.structure.Value newValue, long newVersion, int newPost) -
removed
-
cleared
-
diffSize
public int diffSize(long version) -
treeSize
public long treeSize() -
reduced
public QTree reduced(swim.structure.Value identity, swim.util.CombinerFunction<? super swim.structure.Value, swim.structure.Value> accumulator, swim.util.CombinerFunction<swim.structure.Value, swim.structure.Value> combiner, long newVersion, int newPost) -
evacuated
-
committed
-
uncommitted
- Specified by:
uncommittedin classTree
-
writeDiff
public void writeDiff(swim.codec.Output<?> output, long version) -
buildDiff
-
load
-
soften
public void soften(long version) -
cursor
public swim.util.Cursor<swim.structure.Slot> cursor() -
cursor
public swim.util.Cursor<swim.structure.Slot> cursor(long x, long y) -
depthCursor
public swim.util.Cursor<swim.structure.Slot> depthCursor(long x, long y, int maxDepth) -
depthCursor
public swim.util.Cursor<swim.structure.Slot> depthCursor(int maxDepth) -
deltaCursor
public swim.util.Cursor<swim.structure.Slot> deltaCursor(long x, long y, long sinceVersion) -
deltaCursor
public swim.util.Cursor<swim.structure.Slot> deltaCursor(long sinceVersion)
-