Liking cljdoc? Tell your friends :D

eva.query.datalog.qsqr.state


add-unifiableclj

(add-unifiable bindings predicate derived)
source

conjunct-bindingsclj

(conjunct-bindings state predicate)

Updates the bindings stored in state using current derived relations.

Updates the bindings stored in state using current derived relations.
sourceraw docstring

default-pred-selectorclj

(default-pred-selector state preds)
source

default-rule-selectorclj

(default-rule-selector _ query rules)
source

extract-derivedclj

(extract-derived state predicate)
source

init-stateclj

source

joinclj

(join a b disc merge)
(join a disc-a b disc-b merge)
(join a proj-a b proj-b disc merge)

Performs a join in 'linear time' O(input + output). merge should be a function that actually performs the join on each pair of items from each cross-product determined by the discriminator. :)

Performs a join in 'linear time' O(input + output). merge should be a
function that actually performs the join on each pair of items from
each cross-product determined by the discriminator. :)
sourceraw docstring

join-with-batched-merge-fnclj

(join-with-batched-merge-fn a b disc cross-merge)
(join-with-batched-merge-fn a disc-a b disc-b cross-merge)
(join-with-batched-merge-fn a proj-a b proj-b disc cross-merge)

Performs a join in 'linear time' O(input + output). Like join, but takes a merge-fn that operates on the full sets of items involved in each cross-product of the join.

Performs a join in 'linear time' O(input + output). Like `join`, but
takes a merge-fn that operates on the full sets of items involved in
each cross-product of the join.
sourceraw docstring

novel-generalizationclj

(novel-generalization state gen-pred)

Returns nil if the generalized gen-pred contains nothing novel given the execution state; otherwise, this returns the gen-pred with any previously-run bindings removed.

Returns nil if the generalized gen-pred contains nothing novel given the execution
state; otherwise, this returns the gen-pred with any previously-run bindings removed.
sourceraw docstring

pred-required-met?clj

(pred-required-met? bindings pred)
source

predicate->generalizedclj

(predicate->generalized predicate bindings-set)

Takes a Predicate and returns a GeneralizedPredicate incorporating information from the set of bindings.

Takes a Predicate and returns a GeneralizedPredicate incorporating information
from the set of bindings.
sourceraw docstring

remove-unifiableclj

(remove-unifiable bindings predicate derived)

Remove any unification-maps from bindings that are consistent with any currently derived relations for this predicate.

Remove any unification-maps from bindings that are consistent
with any currently derived relations for this predicate.
sourceraw docstring

rule-required-met?clj

(rule-required-met? decoration rule)
source

trim-bindingsclj

(trim-bindings state generalized-query)
source

update-derivedclj

(update-derived state predicate derived)
source

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

× close