Liking cljdoc? Tell your friends :D

schism.impl.core


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

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

timefnclj/s

source

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

× close