Liking cljdoc? Tell your friends :D

robertluo.waterfall.shape

Transformation functions of shapes of event data.

Transformation functions of shapes of event data.
raw docstring

deserializerclj

(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)]
sourceraw docstring

ednclj

(edn)

A shape converts string/edn.

A shape converts string/edn.
sourceraw docstring

key-valueclj

(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`.
sourceraw docstring

nippyclj

(nippy)

A shape that direct maps data/bytes

A shape that direct maps data/bytes
sourceraw docstring

schemaclj

schema for shapes

schema for shapes
sourceraw docstring

serializerclj

(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)]
sourceraw docstring

shape?clj

(shape? x)

predict if x is a shape

predict if `x` is a shape
sourceraw docstring

shapesclj

(shapes top-shapes)
(shapes top-shapes bytes-shape)
(shapes top-shapes bytes-shape kv-shape)

construct shapes in order.

construct shapes in order.
sourceraw docstring

topicclj

(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.
sourceraw docstring

transitclj

(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`.
sourceraw docstring

value-onlyclj

(value-only)

A shape concerns just value of the Kafka event.

A shape concerns just value of the Kafka event.
sourceraw docstring

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

× close