Liking cljdoc? Tell your friends :D

thdr.kfk.avro-bridge.core


->cljclj

(->clj msg)
(->clj msg
       {:keys [clj-field-fn] :or {clj-field-fn default-clj-field-fn} :as opts})

Parses deserialized Avro object into a Clojure data structure. Enums will get keywordized and kebab-cased.

It accepts an optional as second argument a map with the options: :clj-field-fn function to apply to the record's fields and map keys. Defaults to (comp keyword ->kebab-case str)

Parses deserialized Avro object into
a Clojure data structure. Enums will get keywordized and
kebab-cased.

It accepts an optional as second argument a map with the options:
:clj-field-fn function to apply to the record's fields and map keys. Defaults to (comp keyword ->kebab-case str)
raw docstring

->javaclj

(->java schema obj)
(->java schema obj opts)
(->java schema
        obj
        path
        {:keys [java-field-fn ignore-unknown-fields?]
         :or {java-field-fn default-java-field-fn ignore-unknown-fields? false}
         :as opts})

Converts a Clojure data structure to an Avro-compatible Java object. Avro Schema must be provided.

It accepts an optional as third argument a map with the options:

:java-field-fn function to apply to the Clojure's map keys when transforming them to Record fields and Map keys. Defaults to (comp name ->snake_case) :ignore-unknown-fields? default to false

Converts a Clojure data structure to an Avro-compatible
 Java object. Avro `Schema` must be provided.

It accepts an optional as third argument a map with the options:

:java-field-fn function to apply to the Clojure's map keys when transforming them to Record fields and Map keys. Defaults to (comp name ->snake_case)
:ignore-unknown-fields? default to false
raw docstring

default-clj-field-fnclj


default-java-field-fnclj


parse-schemaclj

(parse-schema json)

A little helper for parsing schemas

A little helper for parsing schemas
raw docstring

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

× close