K
- the key typeV
- the value typepublic class Serialized<K,V>
extends java.lang.Object
Serde
s used when performing
KStream.groupBy(KeyValueMapper, Serialized)
and KStream.groupByKey(Serialized)
operations.Modifier and Type | Field | Description |
---|---|---|
protected Serde<K> |
keySerde |
|
protected Serde<V> |
valueSerde |
Modifier | Constructor | Description |
---|---|---|
protected |
Serialized(Serialized<K,V> serialized) |
Modifier and Type | Method | Description |
---|---|---|
static <K,V> Serialized<K,V> |
with(Serde<K> keySerde,
Serde<V> valueSerde) |
Construct a
Serialized instance with the provided key and value Serde s. |
Serialized<K,V> |
withKeySerde(Serde<K> keySerde) |
Construct a
Serialized instance with the provided key Serde . |
Serialized<K,V> |
withValueSerde(Serde<V> valueSerde) |
Construct a
Serialized instance with the provided value Serde . |
protected Serialized(Serialized<K,V> serialized)
public static <K,V> Serialized<K,V> with(Serde<K> keySerde, Serde<V> valueSerde)
Serialized
instance with the provided key and value Serde
s.
If the Serde
params are null
the default serdes defined in the configs will be used.K
- the key typeV
- the value typekeySerde
- keySerde that will be used to materialize a stream
if not specified the default serdes defined in the configs will be usedvalueSerde
- valueSerde that will be used to materialize a stream
if not specified the default serdes defined in the configs will be usedSerialized
configured with the provided serdespublic Serialized<K,V> withKeySerde(Serde<K> keySerde)
Serialized
instance with the provided key Serde
.
If the Serde
params are null the default serdes defined in the configs will be used.keySerde
- keySerde that will be used to materialize a stream
if not specified the default serdes defined in the configs will be usedSerialized
configured with the provided key serdepublic Serialized<K,V> withValueSerde(Serde<V> valueSerde)
Serialized
instance with the provided value Serde
.
If the Serde
params are null the default serdes defined in the configs will be used.valueSerde
- valueSerde that will be used to materialize a stream
if not specified the default serdes defined in the configs will be usedSerialized
configured with the provided key serde