Liking cljdoc? Tell your friends :D

eva.v2.datastructures.bbtree.logic.v0.operations


bucketclj

(bucket c n)

Like partition, but =n= specifies the number of buckets.

Like partition, but =n= specifies the number of buckets.
sourceraw docstring

deliver-and-add-batchclj

(deliver-and-add-batch nodes chldrn msgs)

Given a sequence of nodes with certain children, a sequence of corresponding sequences of said children, and finally a sequence of sequences of messages corresponding to those children, this delivers the messages to the children (recursively moving down the tree if necessary) and then adds these resulting sequences of children into the parent nodes.

Given a sequence of nodes with certain children, a sequence of corresponding sequences of
said children, and finally a sequence of sequences of messages corresponding to those children,
this delivers the messages to the children (recursively moving down the tree if necessary)
and then adds these resulting sequences of children into the parent nodes.
sourceraw docstring

deliver-messages-batchclj

(deliver-messages-batch nodes shaped-nodes msgs)

This is the process that drives it all. The recursion point back into this function (at a lower level in the tree) occurs in the function apply-messages-batched, so by the time this gets to rebalancing, the lower levels of the tree have already been balanced.

This is the process that drives it all. The recursion point back into
this function (at a lower level in the tree) occurs in the function
apply-messages-batched, so by the time this gets to rebalancing, the
lower levels of the tree have already been balanced.
sourceraw docstring

flush-buffer-batchedclj

(flush-buffer-batched nodes)

Given a sequence of nodes, this flushes their buffers.

Given a sequence of nodes, this flushes their buffers.
sourceraw docstring

flush-buffer-counterclj

source

insertclj

(insert node msgs)
(insert store node msgs)

Entry point to the process of manipulating the btree. After some high-level bookkeeping, delegates to deliver-messages-batch.

Entry point to the process of manipulating the btree. After some high-level bookkeeping,
delegates to deliver-messages-batch.
sourceraw docstring

insert-counterclj

source

keys-to-flushclj

(keys-to-flush node)

Which keys need to be flushed?

Which keys need to be flushed?
sourceraw docstring

needs-balancing?clj

(needs-balancing? node)

Are any of the node's children too small?

Are any of the node's children too small?
sourceraw docstring

num-bucketsclj

(num-buckets item-count order)
source

overflowed-counterclj

source

pathcache19540clj

source

pathcache19550clj

source

persist-treeclj

(persist-tree store old-root root)

Converts the entire tree back into pointer form, then persists the tree to the store. Returns the root node.

Converts the entire tree back into pointer form, then persists the tree to the store.
Returns the root node.
sourceraw docstring

splitclj

(split node)

This method does not check whether the node is overflowing. It just splits it.

This method does *not* check whether the node is overflowing. It just splits it.
sourceraw docstring

split*clj

(split* node)

Splits a node. Uses `split-weight' to determine whether it favors maximally full or minimally full nodes in the result.

Splits a node. Uses `split-weight' to determine whether it favors maximally full
or minimally full nodes in the result.
sourceraw docstring

split-nodes-counterclj

source

too-small-counterclj

source

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

× close