K
- the key typeV
- the value typeGrouped
instead@Deprecated
public 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 and Description |
---|---|
protected org.apache.kafka.common.serialization.Serde<K> |
keySerde
Deprecated.
|
protected org.apache.kafka.common.serialization.Serde<V> |
valueSerde
Deprecated.
|
Modifier | Constructor and Description |
---|---|
protected |
Serialized(Serialized<K,V> serialized)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> Serialized<K,V> |
with(org.apache.kafka.common.serialization.Serde<K> keySerde,
org.apache.kafka.common.serialization.Serde<V> valueSerde)
Deprecated.
Construct a
Serialized instance with the provided key and value Serde s. |
Serialized<K,V> |
withKeySerde(org.apache.kafka.common.serialization.Serde<K> keySerde)
Deprecated.
Construct a
Serialized instance with the provided key Serde . |
Serialized<K,V> |
withValueSerde(org.apache.kafka.common.serialization.Serde<V> valueSerde)
Deprecated.
Construct a
Serialized instance with the provided value Serde . |
protected final org.apache.kafka.common.serialization.Serde<K> keySerde
protected final org.apache.kafka.common.serialization.Serde<V> valueSerde
protected Serialized(Serialized<K,V> serialized)
public static <K,V> Serialized<K,V> with(org.apache.kafka.common.serialization.Serde<K> keySerde, org.apache.kafka.common.serialization.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(org.apache.kafka.common.serialization.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(org.apache.kafka.common.serialization.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