static <K, V> Grouped<K, V> as(final String name)
static <K> Grouped keySerde(final Serde<K> keySerde)
static <V> Grouped valueSerde(final Serde<V> valueSerde)
static <K, V> Grouped<K, V> with(
final Serde<K> keySerde,
final Serde<V> valueSerde)
static <K, V> Grouped<K, V> with(
final String name,
final Serde<K> keySerde,
final Serde<V> valueSerde)
Grouped — Metadata for Aggregating Streams
Grouped provides the optional parameters that describe how to aggregate streams in the High-Level Stream Processing DSL:
Grouped is used as an optional parameter in the following streaming aggregation operators:
A Grouped instance is created using one of the factory methods:
A Grouped instance can futher be configured using the "with" methods.
| Method | Description |
|---|---|
|
|
|
|
|
|
Scala API for Kafka Streams
Scala API for Kafka Streams makes the optional Grouped metadata an implicit parameter in the KStream and KTable APIs.
Moreover, ImplicitConversions object defines groupedFromSerde implicit conversion that creates a Grouped instance with the key and value Serde objects available in implicit scope.
And the last but not least, Scala API for Kafka Streams defines Grouped object with `with` factory methods that use implicit key and value Serde objects.