(claimant? chash node)
Returns true if the given node claims a partition in the ring
Returns true if the given node claims a partition in the ring
(claimants chash)
Returns all nodes that claim partitions on the ring
Returns all nodes that claim partitions on the ring
(fresh n seed)
Takes the size and seed node of a new ring, constructs and returns it
Takes the size and seed node of a new ring, constructs and returns it
(get chash idx)
Returns the node that owns the partition identified by the provided index
Returns the node that owns the partition identified by the provided index
(key-of value)
Returns value's key into the ring. Two values with the same SHA-1 hash value are considered the same name
Returns value's key into the ring. Two values with the same SHA-1 hash value are considered the same name
(merge one another)
Randomized merging of two rings. When two nodes claim the same partition, the owner in the resulting ring is selected randomly
Randomized merging of two rings. When two nodes claim the same partition, the owner in the resulting ring is selected randomly
(next-index chash idx)
Returns the partition that follows the given key
Returns the partition that follows the given key
(partitions chash)
Returns all partitions in the ring
Returns all partitions in the ring
(predecessors chash idx)
(predecessors chash idx n)
Returns all or up to n nodes in the ring before the given index as a property list (sequence of pairs)
Returns all or up to n nodes in the ring before the given index as a property list (sequence of pairs)
(successors chash idx)
(successors chash idx n)
Returns all or up to n nodes in the ring starting with the given index as a property list (sequence of pairs)
Returns all or up to n nodes in the ring starting with the given index as a property list (sequence of pairs)
(update chash idx node)
Updates claimant of the given partition
Updates claimant of the given partition
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close