Liking cljdoc? Tell your friends :D

jackdaw.data

This namespace aims to provide ->T, (datafy T), and data->T as a round-tripping of Katka's (client) record types.

Note that for some types, particularly Kafka's -Result types no ->T constructors are provided as there are no consumers within the Kafka API for these records they are merely packed results.

For compatibility with Clojure before 1.10.0, a datafy function is provided. On 1.10 or after, it simply defers to clojure.datafy/datafy but before 1.10 it acts as a backport thereof.

This namespace aims to provide `->T`, `(datafy T)`, and `data->T` as
a round-tripping of Katka's (client) record types.

Note that for some types, particularly Kafka's `-Result` types no
`->T` constructors are provided as there are no consumers within the
Kafka API for these records they are merely packed results.

For compatibility with Clojure before 1.10.0, a `datafy` function is
provided. On 1.10 or after, it simply defers to
`clojure.datafy/datafy` but before 1.10 it acts as a backport
thereof.

raw docstring

+broker-config-resource-type+clj

sourceraw docstring

+create-type-timestamp+clj

A timestamp type associated with the timestamp being from the record's creation. That is, the record timestamp was user supplied.

A timestamp type associated with the timestamp being from the
record's creation. That is, the record timestamp was user supplied.
sourceraw docstring

+log-append-type-timestamp+clj

A timestamp type associated with the timestamp having been generated by Kafka when the record was produced, not having been specified by the user when the record was created.

A timestamp type associated with the timestamp having been generated
by Kafka when the record was produced, not having been specified by
the user when the record was created.
sourceraw docstring

+no-type-timestamp+clj

A timestamp type associated with... not having a timestamp type.

A timestamp type associated with... not having a timestamp type.
sourceraw docstring

+topic-config-resource-type+clj

sourceraw docstring

+unknown-config-resource-type+clj

sourceraw docstring

->broker-resourceclj

(->broker-resource name)
sourceraw docstring

->topic-resourceclj

(->topic-resource name)
sourceraw docstring

as-OffsetAndTimestampclj

(as-OffsetAndTimestamp ot)
source

as-TopicPartitionclj

(as-TopicPartition o)
sourceraw docstring

Configclj

source

Config->dataclj

(Config->data c)
sourceraw docstring

ConfigEntry->dataclj

(ConfigEntry->data e)
sourceraw docstring

ConfigResource->dataclj

(ConfigResource->data cr)
sourceraw docstring

ConfigResourceType->dataclj

(ConfigResourceType->data crt)
sourceraw docstring

ConsumerRecordclj

source

ConsumerRecord->dataclj

(ConsumerRecord->data r)
source

datafyclj

(datafy x)

Attempts to return x as data.

datafy will return the value of #'clojure.core.protocols/datafy.

If the value has been transformed and the result supports metadata, :clojure.datafy/obj will be set on the metadata to the original value of x, and :clojure.datafy/class to the name of the class of x, as a symbol.

Attempts to return x as data.

`datafy` will return the value of `#'clojure.core.protocols/datafy`.

If the value has been transformed and the result supports metadata,
`:clojure.datafy/obj` will be set on the metadata to the original
value of x, and `:clojure.datafy/class` to the name of the class of
x, as a symbol.
sourceraw docstring

DescribeClusterResult->dataclj

(DescribeClusterResult->data dcr)
sourceraw docstring

NewTopicclj

source

Node->dataclj

(Node->data node)
sourceraw docstring

OffsetAndTimestampclj

source

OffsetAndTimestamp->dataclj

(OffsetAndTimestamp->data ots)
source

PartitionInfo->dataclj

(PartitionInfo->data pi)
source

ProducerRecordclj

source

ProducerRecord->dataclj

(ProducerRecord->data pr)
source

Propertiesclj

source

Properties->dataclj

(Properties->data o)

Consume a Properties instance, keywordizing the keys and returning a Clojure mapping of the resulting keys to unmodified values.

Consume a `Properties` instance, keywordizing the keys and returning
a Clojure mapping of the resulting keys to unmodified values.
sourceraw docstring

RecordMetadataclj

source

RecordMetadata->dataclj

(RecordMetadata->data rm)
source

TimestampType->dataclj

(TimestampType->data tt)
source

TopicDescription->dataclj

(TopicDescription->data td)
sourceraw docstring

TopicPartitionclj

source

TopicPartition->dataclj

(TopicPartition->data tp)
source

TopicPartitionInfo->dataclj

(TopicPartitionInfo->data tpi)
sourceraw docstring

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

× close