Package org.apache.kafka.streams.kstream
Class Serialized<K,V>
- java.lang.Object
-
- org.apache.kafka.streams.kstream.Serialized<K,V>
-
- Type Parameters:
K
- the key typeV
- the value type
@Deprecated public class Serialized<K,V> extends Object
Deprecated.since 2.1. UseGrouped
insteadThe class that is used to capture the key and valueSerde
s used when performingKStream.groupBy(KeyValueMapper, Serialized)
andKStream.groupByKey(Serialized)
operations.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Serialized(Serialized<K,V> serialized)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <K,V>
Serialized<K,V>with(Serde<K> keySerde, Serde<V> valueSerde)
Deprecated.Construct aSerialized
instance with the provided key and valueSerde
s.Serialized<K,V>
withKeySerde(Serde<K> keySerde)
Deprecated.Construct aSerialized
instance with the provided keySerde
.Serialized<K,V>
withValueSerde(Serde<V> valueSerde)
Deprecated.Construct aSerialized
instance with the provided valueSerde
.
-
-
-
Constructor Detail
-
Serialized
protected Serialized(Serialized<K,V> serialized)
Deprecated.
-
-
Method Detail
-
with
public static <K,V> Serialized<K,V> with(Serde<K> keySerde, Serde<V> valueSerde)
Deprecated.Construct aSerialized
instance with the provided key and valueSerde
s. If theSerde
params arenull
the default serdes defined in the configs will be used.- Type Parameters:
K
- the key typeV
- the value type- Parameters:
keySerde
- 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 used- Returns:
- a new instance of
Serialized
configured with the provided serdes
-
withKeySerde
public Serialized<K,V> withKeySerde(Serde<K> keySerde)
Deprecated.Construct aSerialized
instance with the provided keySerde
. If theSerde
params are null the default serdes defined in the configs will be used.- Parameters:
keySerde
- keySerde that will be used to materialize a stream if not specified the default serdes defined in the configs will be used- Returns:
- a new instance of
Serialized
configured with the provided key serde
-
withValueSerde
public Serialized<K,V> withValueSerde(Serde<V> valueSerde)
Deprecated.Construct aSerialized
instance with the provided valueSerde
. If theSerde
params are null the default serdes defined in the configs will be used.- Parameters:
valueSerde
- valueSerde that will be used to materialize a stream if not specified the default serdes defined in the configs will be used- Returns:
- a new instance of
Serialized
configured with the provided key serde
-
-