Liking cljdoc? Tell your friends :D

clojurewerkz.chash.ring


claimant?clj

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

claimantsclj

(claimants chash)

Returns all nodes that claim partitions on the ring

Returns all nodes that claim partitions on the ring
sourceraw docstring

claimsclj

(claims chash)
source

contains?clj

(contains? chash node)
source

countclj

(count chash)

Returns sizes of the ring

Returns sizes of the ring
sourceraw docstring

freshclj

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

getclj

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

key-ofclj

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

max-nclj

(max-n chash l)
source

mergeclj

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

next-indexclj

(next-index chash idx)

Returns the partition that follows the given key

Returns the partition that follows the given key
sourceraw docstring

partitionsclj

(partitions chash)

Returns all partitions in the ring

Returns all partitions in the ring
sourceraw docstring

predecessorsclj

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

Ringclj

source

ring-incrementclj

(ring-increment n)
source

ring-topclj

source

successorsclj

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

updateclj

(update chash idx node)

Updates claimant of the given partition

Updates claimant of the given partition
sourceraw docstring

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

× close