(clockwise-node hashed-item hashed-nodes)
Returns the next clockwise node starting from hashed-item. The term 'clockwise' means 'greater than with wrap-around'.
Returns the next clockwise node starting from hashed-item. The term 'clockwise' means 'greater than with wrap-around'.
(consistent-hash-fn item-hash-fn node-hash-fn)
Returns a consistent hash function for a given item hashing function and node hashing function. The returned function accepts an items and sequence of nodes and returns one of the nodes.
Returns a consistent hash function for a given item hashing function and node hashing function. The returned function accepts an items and sequence of nodes and returns one of the nodes.
(hash-nodes nodes hash-fn)
Returns a sorted map (where the key is a hash and the value is the original node) from a list of nodes and node hashing function.
Returns a sorted map (where the key is a hash and the value is the original node) from a list of nodes and node hashing function.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close