Liking cljdoc? Tell your friends :D

schism.impl.core


assoc-n-with-tail-supportclj/s

(assoc-n-with-tail-support a n v)

Assoc with support to place v at the tail of a when n is -1.

Assoc with support to place `v` at the tail of `a` when `n` is -1.
sourceraw docstring

common-elementsclj/s

(common-elements & datasets)

Accepts maps of the form

{:vector-clock <map of nodes to update times> :elements <vector of {:data <opaque value> :author-node <node-id> :record-time <Date object>}>}

Returns a vector of the common elements.

Accepts maps of the form

{:vector-clock <map of nodes to update times>
 :elements <vector of {:data <opaque value>
                       :author-node <node-id>
                       :record-time <Date object>}>}

Returns a vector of the common elements.
sourceraw docstring

distinct-dataclj/s

(distinct-data & datasets)

Accepts maps of the form

{:vector-clock <map of nodes to update times> :elements <vector of {:data <opaque value> :author-node <node-id> :record-time <Date object>}>}

Returns a vector of the maps with the common elements entries removed.

Accepts maps of the form

{:vector-clock <map of nodes to update times>
 :elements <vector of {:data <opaque value>
                       :author-node <node-id>
                       :record-time <Date object>}>}

Returns a vector of the maps with the common elements entries removed.
sourceraw docstring

merged-clockclj/s

(merged-clock elements & datasets)

Accepts a collection of elements, and two or more datasets of the form

{:vector-clock <map of nodes to update times> :elements <vector of {:data <opaque value> :author-node <node-id> :record-time <Date object>}>}

Returns a vector clock of the relevant nodes, that being the nodes referenced as :author-node in elements.

Accepts a collection of elements, and two or more datasets of the form

 {:vector-clock <map of nodes to update times>
  :elements <vector of {:data <opaque value>
                        :author-node <node-id>
                        :record-time <Date object>}>}

 Returns a vector clock of the relevant nodes, that being the nodes
referenced as :author-node in elements.
sourceraw docstring

node-and-thresholdclj/s

(node-and-threshold data)
source

nowclj/s

(now)
source

retain-elementsclj/s

(retain-elements own-data other-data)

Accepts two maps of the form

{:vector-clock <map of nodes to update times> :elements <vector of {:data <opaque value> :author-node <node-id> :record-time <Date object>}>}

Returns a seq of elements to be retained using ORSWOT merge semantics.

Accepts two maps of the form

{:vector-clock <map of nodes to update times>
 :elements <vector of {:data <opaque value>
                       :author-node <node-id>
                       :record-time <Date object>}>}

Returns a seq of elements to be retained using ORSWOT merge semantics.
sourceraw docstring

tail-insertion-sort-valueclj/s

The value to use when sorting insertions by index, and the recorded index was -1, indicating the element was inserted at the tail.

The value to use when sorting insertions by index, and the recorded
index was -1, indicating the element was inserted at the tail.
sourceraw docstring

to-dateclj/s

(to-date millis)
source

to-millisclj/s

source

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

× close