Liking cljdoc? Tell your friends :D

eva.datastructures.protocols


BackedStructurecljprotocol

persist!clj

(persist! this)

Persists the current version.

Persists the current version.

persisted?clj

(persisted? this)

Is this version persisted to storage?

Is this version persisted to storage?

storage-idclj

(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.

storeclj

(store this)

Returns the persistent store backing this structure.

Returns the persistent store backing this structure.
source

BTreeBackedcljprotocol

in-mem-nodesclj

(in-mem-nodes this)

Returns the collection of nodes that are not persisted.

Returns the collection of nodes that are not persisted.

root-nodeclj

(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.
source

BTreeOpscljprotocol

filterclj

(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-intervalclj

(keep-interval this rng)

Removes everything EXCEPT what falls within the supplied interval.

Removes everything EXCEPT what falls within the supplied interval.

remove-intervalclj

(remove-interval this rng)

Removes everything that falls within the supplied interval.

Removes everything that falls within the supplied interval.
source

BTreeTransientOpscljprotocol

filter!clj

(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!clj

(keep-interval! this rng)

Removes everything EXCEPT what falls within the supplied interval.

Removes everything EXCEPT what falls within the supplied interval.

remove-interval!clj

(remove-interval! this rng)

Removes everything that falls within the supplied interval.

Removes everything that falls within the supplied interval.
source

EditableBackedStructurecljprotocol

make-editable!clj

(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
source

Intervalcljprotocol

highclj

(high this)

Returns the max of the range.

Returns the max of the range.

high-open?clj

(high-open? this)

Returns true if higher end of interval is open

Returns true if higher end of interval is open

intersectclj

(intersect this cmp other)

Returns the intersection of this interval and the other.

Returns the intersection of this interval and the other.

interval-contains?clj

(interval-contains? this cmp point)

interval-overlaps?clj

(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.

lowclj

(low this)

Returns the min of the range.

Returns the min of the range.

low-open?clj

(low-open? this)

Returns true if lower end of interval is open

Returns true if lower end of interval is open

restrictclj

(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.
source

Versionedcljprotocol

get-versionclj

(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.
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close