Liking cljdoc? Tell your friends :D

eva.v2.datastructures.bbtree

Convenience namespace to refer to protocol methods and certain internal btree methods all in one place. See eva.v2.datastructures.bbtree.api for implementation details and docs.

Convenience namespace to refer to protocol methods and certain internal btree methods
all in one place. See eva.v2.datastructures.bbtree.api for implementation details and docs.
raw docstring

backed-sorted-mapclj

(backed-sorted-map store)
(backed-sorted-map store n)
(backed-sorted-map store order buffer-size)

Returns a buffered-btree implementation of a sorted map, backed by a persistent key value store. This is optimized for a solution with high latency (> 10 ms) for retrieving nodes, and the transient version simply stores up a sequence of actions to take, performing them in batch at the time of the persist! call.

Returns a buffered-btree implementation of a sorted map, backed by a persistent key value store.
This is optimized for a solution with high latency (> 10 ms) for retrieving nodes, and the transient
version simply stores up a sequence of actions to take, performing them in batch at the time of the
persist! call.
sourceraw docstring

backed-sorted-map-byclj

(backed-sorted-map-by cmp store)
(backed-sorted-map-by cmp store n)
(backed-sorted-map-by cmp store order buffer-size)

Returns a buffered-btree implementation of a sorted map with a custom comparator, backed by a persistent key-value store. This is optimized for high fetch latency (> 10 ms) for retrieving nodes, and the transient version simply stores up a sequence of actions to take, performing them in batch at the time of the persist! call.

Returns a buffered-btree implementation of a sorted map with a custom comparator, backed by a persistent
key-value store. This is optimized for high fetch latency (> 10 ms) for retrieving nodes, and the transient
version simply stores up a sequence of actions to take, performing them in batch at the time of the persist!
call.
sourceraw docstring

backed-sorted-setclj

(backed-sorted-set store)
(backed-sorted-set store n)
(backed-sorted-set store order buffer-size)

Returns a buffered-btree implementation of a sorted set backed by a persistent key-value store, serving as a drop-in replacement for the built-in sorted set. This is optimized for high IO latency (> 10 ms) and the transient version simply stores up a sequence of conjoins and disjoins which are performed in a batch at the time of the persist! call.

Returns a buffered-btree implementation of a sorted set backed by a persistent key-value store, serving
as a drop-in replacement for the built-in sorted set. This is optimized for high IO latency (> 10 ms)
and the transient version simply stores up a sequence of conjoins and disjoins which are performed
in a batch at the time of the persist! call.
sourceraw docstring

backed-sorted-set-byclj

(backed-sorted-set-by cmp store)
(backed-sorted-set-by cmp store n)
(backed-sorted-set-by cmp store order buffer-size)

Returns a buffered-btree implementation of a sorted set with a custom comparator, backed by a persistent key-value store. Serves as a drop-in replacement for Clojure's sorted set. This is optimized for high IO latency (> 10 ms) for retrieving nodes, and the transient version simply stores up a sequence of conjoins and disjoins which are finally performed in batch at the time of the persist! call.

Returns a buffered-btree implementation of a sorted set with a custom comparator, backed by a persistent
key-value store. Serves as a drop-in replacement for Clojure's sorted set. This is optimized for high
IO latency (> 10 ms) for retrieving nodes, and the transient version simply stores up a sequence of
conjoins and disjoins which are finally performed in batch at the time of the persist! call.
sourceraw docstring

betweenclj

(between set-or-map low high)

We are trying to construct a more inclusive search. We are going to make a query in which no one is left out.

We are trying to construct a more inclusive search. We are going to make a
query in which no one is left out.
sourceraw docstring

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.
sourceraw docstring

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.
sourceraw docstring

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.
sourceraw docstring

keep-intervalclj

(keep-interval this rng)

Removes everything EXCEPT what falls within the supplied interval.

Removes everything EXCEPT what falls within the supplied interval.
sourceraw docstring

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.
sourceraw docstring

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
sourceraw docstring

openclj

(open store uuid)

Constructs a new map/set from the specified root. The resulting map/set cannot be persisted.

Constructs a new map/set from the specified root. The resulting map/set cannot be persisted.
sourceraw docstring

open-mapclj

(open-map store uuid)

Constructs a new map from the specified root. The resulting map cannot be persisted. Throw an exception if the tree was originally a set.

Constructs a new map from the specified root. The resulting map cannot be persisted.
Throw an exception if the tree was originally a set.
sourceraw docstring

open-setclj

(open-set store uuid)

Constructs a new set from the specified root. The resulting set cannot be persisted. Throw an exception if the tree was originally a map.

Constructs a new set from the specified root. The resulting set cannot be persisted.
Throw an exception if the tree was originally a map.
sourceraw docstring

open-writableclj

(open-writable store uuid)

Constructs a new map/set from the specified root. The resulting map/set can be persisted.

Constructs a new map/set from the specified root. The resulting map/set can be persisted.
sourceraw docstring

open-writable-mapclj

(open-writable-map store uuid)

Constructs a new map from the specified root. The resulting map can be persisted. Throw an exception if the tree was originally a set.

Constructs a new map from the specified root. The resulting map can be persisted.
Throw an exception if the tree was originally a set.
sourceraw docstring

open-writable-setclj

(open-writable-set store uuid)

Constructs a new set from the specified root. The resulting set can be persisted. Throw an exception if the tree was originally a map.

Constructs a new set from the specified root. The resulting set can be persisted.
Throw an exception if the tree was originally a map.
sourceraw docstring

persist!clj

(persist! this)

Persists the current version.

Persists the current version.
sourceraw docstring

remove-intervalclj

(remove-interval this rng)

Removes everything that falls within the supplied interval.

Removes everything that falls within the supplied interval.
sourceraw docstring

remove-interval!clj

(remove-interval! this rng)

Removes everything that falls within the supplied interval.

Removes everything that falls within the supplied interval.
sourceraw docstring

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.
sourceraw docstring

sorted-mapclj

(sorted-map)
(sorted-map n)
(sorted-map order buffer-size)

Returns a buffered-btree implementation of a sorted map, as a drop-in replacement for the built-in sorted map. Has a transient version. Is optimized for a latency-heavy backing (see backed-sorted-map), so the built-in sorted-map is probably a better choice.

Returns a buffered-btree implementation of a sorted map, as a drop-in replacement for the built-in sorted map.
Has a transient version. Is optimized for a latency-heavy backing (see backed-sorted-map), so the built-in
sorted-map is probably a better choice.
sourceraw docstring

sorted-map-byclj

(sorted-map-by cmp)
(sorted-map-by cmp n)
(sorted-map-by cmp order buffer-size)

Returns a buffered-btree implementation of a sorted map with a custom comparator, as a drop-in replacement for the built-in sorted map. Has a transient version. Is optimized for a latency-heavy storage backend (see backed-sorted-map-by), so clojure.core/sorted-map-by is probably a better choice.

Returns a buffered-btree implementation of a sorted map with a custom comparator, as a drop-in replacement
for the built-in sorted map. Has a transient version. Is optimized for a latency-heavy storage backend
(see backed-sorted-map-by), so clojure.core/sorted-map-by is probably a better choice.
sourceraw docstring

sorted-setclj

(sorted-set)
(sorted-set n)
(sorted-set order buffer-size)

Returns a buffered-btree implementation of a sorted set, as a drop-in replacement for the built-in sorted set. Has a transient version. Is optimized for a latency-heavy backing (see backed-sorted-set), so clojure.core's sorted-set is probably a better choice for you.

Returns a buffered-btree implementation of a sorted set, as a drop-in replacement for the built-in sorted set.
Has a transient version. Is optimized for a latency-heavy backing (see backed-sorted-set), so clojure.core's
sorted-set is probably a better choice for you.
sourceraw docstring

sorted-set-byclj

(sorted-set-by cmp)
(sorted-set-by cmp n)
(sorted-set-by cmp order buffer-size)

Returns a buffered-btree implementation of a sorted set with a custom comparator, as a drop-in replacement for core's sorted set. Has a transient version. This is optimized for a latency-heavy storage solution (see backed-sorted-set-by), so clojure.core/sorted-set-by is probably a better choice.

Returns a buffered-btree implementation of a sorted set with a custom comparator, as a drop-in replacement
for core's sorted set. Has a transient version. This is optimized for a latency-heavy storage solution
(see backed-sorted-set-by), so clojure.core/sorted-set-by is probably a better choice.
sourceraw docstring

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.
sourceraw docstring

storeclj

(store this)

Returns the persistent store backing this structure.

Returns the persistent store backing this structure.
sourceraw docstring

subrangeclj

(subrange set-or-map range)

Returns a sequence containing all elements from the map/set within the specified range.

Returns a sequence containing all elements from the map/set within the specified range.
sourceraw docstring

subrangesclj

(subranges set-or-map ranges)

Returns a map: range->sequence, where each sequence contains (in order) all the elements from the map/set contained by the corresponding range.

Returns a map: range->sequence, where each sequence contains (in order) all the elements
from the map/set contained by the corresponding range.
sourceraw docstring

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

× close