Liking cljdoc? Tell your friends :D

jackdaw.streams.lambdas

Wrappers for the Java 'lambda' functions.

Wrappers for the Java 'lambda' functions.
raw docstring

aggregatorclj

(aggregator aggregator-fn)

Packages up a Clojure fn in a kstream aggregator.

Packages up a Clojure fn in a kstream aggregator.
sourceraw docstring

foreach-actionclj

(foreach-action foreach-action-fn)

Packages up a Clojure fn in a kstream ForeachAction.

Packages up a Clojure fn in a kstream ForeachAction.
sourceraw docstring

foreign-key-extractorclj

(foreign-key-extractor foreign-key-extractor-fn)

Packages up a Clojure fn into a Java Function - hopefully, redundant as of Clojure 1.12.

Packages up a Clojure fn into a Java Function - hopefully, redundant as of Clojure 1.12.
sourceraw docstring

initializerclj

(initializer initializer-fn)

Packages up a Clojure fn in a kstream Initializer.

Packages up a Clojure fn in a kstream Initializer.
sourceraw docstring

key-valueclj

(key-value [key value])

A key-value pair defined for a single Kafka Streams record.

A key-value pair defined for a single Kafka Streams record.
sourceraw docstring

key-value-flatmapperclj

(key-value-flatmapper key-value-flatmapper-fn)

Packages up a Clojure fn in a kstream key value mapper for use with .flatMap.

key-value-flatmapper-fn should be a function that takes a [key value] as a single parameter, and returns a list of [key value].

Packages up a Clojure fn in a kstream key value mapper for use with .flatMap.

`key-value-flatmapper-fn` should be a function that takes a `[key value]` as a
single parameter, and returns a list of `[key value]`.
sourceraw docstring

key-value-mapperclj

(key-value-mapper key-value-mapper-fn)

Packages up a Clojure fn in a kstream key value mapper.

Packages up a Clojure fn in a kstream key value mapper.
sourceraw docstring

mergerclj

(merger merger-fn)

Packages up a Clojure fn in a kstream merger (merges together two SessionWindows aggregate values).

Packages up a Clojure fn in a kstream merger (merges together two SessionWindows aggregate values).
sourceraw docstring

predicateclj

(predicate predicate-fn)

Packages up a Clojure fn in a kstream predicate.

Packages up a Clojure fn in a kstream predicate.
sourceraw docstring

processorclj

(processor processor-fn)

Packages up a Clojure fn as a kstream processor.

Packages up a Clojure fn as a kstream processor.
sourceraw docstring

processor-supplierclj

(processor-supplier processor-fn)

Packages up a Clojure fn in a kstream processor supplier.

Packages up a Clojure fn in a kstream processor supplier.
sourceraw docstring

reducerclj

(reducer reducer-fn)

Packages up a Clojure fn in a kstream reducer.

Packages up a Clojure fn in a kstream reducer.
sourceraw docstring

select-key-value-mapperclj

(select-key-value-mapper select-key-value-mapper-fn)

Packages up a Clojure fn in a kstream key value mapper for use with select-key.

Packages up a Clojure fn in a kstream key value mapper for use with
`select-key`.
sourceraw docstring

stream-partitionerclj

(stream-partitioner stream-partitioner-fn)

Packages up a Clojure fn in a kstream partitioner.

Packages up a Clojure fn in a kstream partitioner.
sourceraw docstring

transform-supplier->processor-supplierclj

(transform-supplier->processor-supplier supplier-fn)

Adapts a jackdaw transform supplier fn to a Kafka ProcessorSupplier. The supplier fn must return an org.apache.kafka.streams.processor.api.Processor (e.g. via transformer-with-ctx).

Adapts a jackdaw transform supplier fn to a Kafka ProcessorSupplier. The
supplier fn must return an org.apache.kafka.streams.processor.api.Processor
(e.g. via `transformer-with-ctx`).
sourceraw docstring

transformer-with-ctxclj

(transformer-with-ctx xfm-fn)

Helper to create a processor for use inside the jackdaw transform wrapper. Passed function should take three args - the context, key and value for the stream. The processor context allows access to stream internals such as state stores. The returned key-value is forwarded. E.g.

(-> builder
    (k/stream topic)
    (k/transform
      (kl/transformer-with-ctx
        (fn [ctx k v]
          ...))))
Helper to create a processor for use inside the jackdaw transform wrapper.
Passed function should take three args - the context, key and value for the stream.
The processor context allows access to stream internals such as state stores.
The returned key-value is forwarded. E.g.
```
(-> builder
    (k/stream topic)
    (k/transform
      (kl/transformer-with-ctx
        (fn [ctx k v]
          ...))))
```
sourceraw docstring

value-joinerclj

(value-joiner value-joiner-fn)

Packages up a Clojure fn in a kstream value joiner.

Packages up a Clojure fn in a kstream value joiner.
sourceraw docstring

value-mapperclj

(value-mapper value-mapper-fn)

Packages up a Clojure fn in a kstream value mapper.

Packages up a Clojure fn in a kstream value mapper.
sourceraw docstring

value-transform-supplier->fk-processor-supplierclj

(value-transform-supplier->fk-processor-supplier supplier-fn)

Adapts a jackdaw transform-values supplier fn to a FixedKeyProcessorSupplier. The supplier fn must return an org.apache.kafka.streams.processor.api.FixedKeyProcessor (e.g. via value-transformer-with-ctx).

Adapts a jackdaw transform-values supplier fn to a FixedKeyProcessorSupplier.
The supplier fn must return an
org.apache.kafka.streams.processor.api.FixedKeyProcessor (e.g. via
`value-transformer-with-ctx`).
sourceraw docstring

value-transformer-with-ctxclj

(value-transformer-with-ctx xfm-fn)

Helper to create a fixed-key processor for use inside the jackdaw transform-values wrapper. Passed function should take two args - the context and value for the stream. The returned value is forwarded. E.g.

(-> builder
    (k/stream topic)
    (k/transform-values
      (kl/value-transformer-with-ctx
        (fn [ctx v]
          ...))))
Helper to create a fixed-key processor for use inside the jackdaw
transform-values wrapper. Passed function should take two args - the context
and value for the stream. The returned value is forwarded. E.g.
```
(-> builder
    (k/stream topic)
    (k/transform-values
      (kl/value-transformer-with-ctx
        (fn [ctx v]
          ...))))
```
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close