Liking cljdoc? Tell your friends :D

hara.data.pipeline.transform


process-transformclj

(process-transform strans tdata nsv interim tsch datasource)

Converts one value to another either through a value or function

(transform/process-transform {:name "Bob"} {:name "Chris"} [:account] {} {} {}) => {:name "Bob"}

Converts one value to another either through a value or function

(transform/process-transform {:name "Bob"}
                             {:name "Chris"}
                             [:account]
                             {}
                             {}
                             {})
=> {:name "Bob"}
raw docstring

wrap-hash-setclj

(wrap-hash-set f)

allows operations to be performed on sets

((transform/wrap-hash-set +) #{1 2 3} 10) => #{13 12 11}

((transform/wrap-hash-set +) 1 10) => 11

allows operations to be performed on sets

((transform/wrap-hash-set +) #{1 2 3} 10)
=> #{13 12 11}

((transform/wrap-hash-set +) 1 10)
=> 11
raw docstring

wrap-model-post-transformclj

(wrap-model-post-transform f)

applies a function transformation in the :post-transform step

(pipeline/normalise {:account/name "Chris"} {:schema (schema/schema examples/account-name-age-sex) :name "Bob" :pipeline {:post-transform {:account {:name (fn [_ env] (:name env))}}}} {:normalise [transform/wrap-model-post-transform]}) => {:account {:name "Bob"}}

applies a function transformation in the :post-transform step

(pipeline/normalise {:account/name "Chris"}
                     {:schema (schema/schema examples/account-name-age-sex)
                      :name "Bob"
                      :pipeline {:post-transform {:account {:name (fn [_ env] (:name env))}}}}
                     {:normalise [transform/wrap-model-post-transform]})
=> {:account {:name "Bob"}}
raw docstring

wrap-model-pre-transformclj

(wrap-model-pre-transform f)

Applies a function transformation in the :pre-transform step

(pipeline/normalise {:account/name "Chris"} {:schema (schema/schema examples/account-name-age-sex) :pipeline {:pre-transform {:account {:name "Bob"}}}} {:normalise [transform/wrap-model-pre-transform]}) => {:account {:name "Bob"}}

Applies a function transformation in the :pre-transform step

(pipeline/normalise {:account/name "Chris"}
                    {:schema (schema/schema examples/account-name-age-sex)
                     :pipeline {:pre-transform {:account {:name "Bob"}}}}
                    {:normalise [transform/wrap-model-pre-transform]})
=> {:account {:name "Bob"}}
raw docstring

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

× close