Transformation functions of shapes of event data.
Transformation functions of shapes of event data.
(deserializer shapes)returns a deserializer function which composes shapes, will be called in the
reverse order of serializer, so the shapes argument can be shared.
e.g. [(edn) (value-only)]
returns a deserializer function which composes `shapes`, will be called in the reverse order of `serializer`, so the `shapes` argument can be shared. e.g. [(edn) (value-only)]
(key-value f)(key-value f g)A shape concerns both the key and value of the Kafka event.
When serializing a value, f will apply to the value, the return will
be the key of the event.
When deserializing a value, optional function g will apply to the
key and value pari of the event. Default is identity.
A shape concerns both the key and value of the Kafka event. When serializing a value, `f` will apply to the value, the return will be the key of the event. When deserializing a value, optional function `g` will apply to the key and value pari of the event. Default is `identity`.
(nippy)A shape that direct maps data/bytes
A shape that direct maps data/bytes
(serializer shapes)returns a serializer function which composes shapes, make sure to put the
last step (like value-only) to the last.
e.g. [(edn) (value-only)]
returns a serializer function which composes `shapes`, make sure to put the last step (like `value-only`) to the last. e.g. [(edn) (value-only)]
(topic f-topic)A shape attach topic to record on serilization, do nothing when deserilizing.
f-topic: function take data (records with :key and :value), returns
a string of topic name.A shape attach topic to record on serilization, do nothing when deserilizing. - `f-topic`: function take data (records with `:key` and `:value`), returns a string of topic name.
(transit format)A shape that direct maps data/bytes.
format: transit supporting format, one of :msgpack, :json, :json-verbose.A shape that direct maps data/bytes. - `format`: transit supporting format, one of `:msgpack`, `:json`, `:json-verbose`.
(value-only)A shape concerns just value of the Kafka event.
A shape concerns just value of the Kafka event.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |