(persist! this)
Persists the current version.
Persists the current version.
(persisted? this)
Is this version persisted to storage?
Is this version persisted to storage?
(storage-id this)
Returns the storage id (should be uuid) of the root of this datastructure. Throws an error if it has not been persisted.
Returns the storage id (should be uuid) of the root of this datastructure. Throws an error if it has not been persisted.
(store this)
Returns the persistent store backing this structure.
Returns the persistent store backing this structure.
(in-mem-nodes this)
Returns the collection of nodes that are not persisted.
Returns the collection of nodes that are not persisted.
(root-node this)
Returns the root node of the btree backing this data structure.
Returns the root node of the btree backing this data structure.
(filter this f)
When using this with backed trees, f must implement datastructures.utils.fressian.Autological.
When using this with backed trees, f must implement datastructures.utils.fressian.Autological.
(keep-interval this rng)
Removes everything EXCEPT what falls within the supplied interval.
Removes everything EXCEPT what falls within the supplied interval.
(remove-interval this rng)
Removes everything that falls within the supplied interval.
Removes everything that falls within the supplied interval.
(filter! this f)
When using this with backed trees, f must implement datastructures.utils.fressian.Autological.
When using this with backed trees, f must implement datastructures.utils.fressian.Autological.
(keep-interval! this rng)
Removes everything EXCEPT what falls within the supplied interval.
Removes everything EXCEPT what falls within the supplied interval.
(remove-interval! this rng)
Removes everything that falls within the supplied interval.
Removes everything that falls within the supplied interval.
(make-editable! this)
Returns an editable version of the given structure. Provides no contract vis-a-vis the safety of editing
Returns an editable version of the given structure. Provides no contract vis-a-vis the safety of editing
(high this)
Returns the max of the range.
Returns the max of the range.
(high-open? this)
Returns true if higher end of interval is open
Returns true if higher end of interval is open
(intersect this cmp other)
Returns the intersection of this interval and the other.
Returns the intersection of this interval and the other.
(interval-contains? this cmp point)
(interval-overlaps? this cmp other-range)
(interval-overlaps? this cmp low high)
Tells you whether the range overlaps with the given range.
Tells you whether the range overlaps with the given range.
(low this)
Returns the min of the range.
Returns the min of the range.
(low-open? this)
Returns true if lower end of interval is open
Returns true if lower end of interval is open
(restrict this cmp low high)
Returns a new range restricted by the given low and high elements. Open and closed properties remain unchanged.
Returns a new range restricted by the given low and high elements. Open and closed properties remain unchanged.
(get-version this)
Expected to return a namespaced keyword: :datastructure-type/version-id. Used by multimethod ensure-version.
Expected to return a namespaced keyword: :datastructure-type/version-id. Used by multimethod ensure-version.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close