Liking cljdoc? Tell your friends :D

dsbdp.dsl.core

DSL for processing data

DSL for processing data
raw docstring

*incremental-indicator-suffix*clj

source

*verbose*clj

source

combine-proc-fnsclj

(combine-proc-fns dsl-expression start-idx end-idx)

Based on the DSL expression dsl-expression, create a data processing function in which the processing rules starting at start-idx, inclusive, up to end-idx, non inclusive, are combined. Please note that it is usually more appropriate to use combine-proc-fns-vec.

Based on the DSL expression dsl-expression, create a data processing function in which the processing rules starting at start-idx, inclusive, up to end-idx, non inclusive, are combined.
Please note that it is usually more appropriate to use combine-proc-fns-vec.
sourceraw docstring

combine-proc-fns-vecclj

(combine-proc-fns-vec fn-mapping dsl-expression)

Based on the function mapping fn-mapping and the DSL expression dsl-expression, create a vector of data processing functions. The mapping definition defines the number of processing rules to be included in each processing function. For a vector of processing rules [a b c d e f], a mapping definition [1 2 3] will result in the following association of processing rules to processing functions f_x: [f_1(a), f_2(b, c), f_3(d e f)].

Based on the function mapping fn-mapping and the DSL expression dsl-expression, create a vector of data processing functions.
The mapping definition defines the number of processing rules to be included in each processing function.
For a vector of processing rules [a b c d e f], a mapping definition [1 2 3] will result in the following association of processing rules to processing functions f_x: [f_1(a), f_2(b, c), f_3(d e f)].
sourceraw docstring

create-proc-fnclj

(create-proc-fn dsl-expression)

Create a data processing function based on the given dsl-expression. An example of a dsl-expression for processing a Clojure seq is given below:

{:output-type :clj-map :rules [['myFloat '(nth 0)] ['myStr '(clojure.string/lower-case (nth 1)) :string] ['myRatio '(/ (nth 2) 100.0)] ['myStr2 '(str (nth 3) (nth 4)) :string]]}

The resulting function will for the input [1.23 "FOO" 42 "bar" "baz"] produce the output {"myFloat" 1.23, "myStr" "foo", "myRatio" 0.42, "myStr2" "barbaz"}.

Create a data processing function based on the given dsl-expression.
An example of a dsl-expression for processing a Clojure seq is given below:

{:output-type :clj-map
 :rules [['myFloat '(nth 0)]
         ['myStr '(clojure.string/lower-case (nth 1)) :string]
         ['myRatio '(/ (nth 2) 100.0)]
         ['myStr2 '(str (nth 3) (nth 4)) :string]]}

The resulting function will for the input [1.23 "FOO" 42 "bar" "baz"] produce the output {"myFloat" 1.23, "myStr" "foo", "myRatio" 0.42, "myStr2" "barbaz"}.
sourceraw docstring

offset-suffixclj

source

prefix-rule-nameclj

(prefix-rule-name rule-name nesting-level)

Prefix the rule name based on its nesting level to assure that at identifiers at each branch level are unique.

Prefix the rule name based on its nesting level to assure that at identifiers at each branch level are unique.
sourceraw docstring

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

× close