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. UseGroupedinsteadThe class that is used to capture the key and valueSerdes used when performingKStream.groupBy(KeyValueMapper, Serialized)andKStream.groupByKey(Serialized)operations.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSerialized(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 aSerializedinstance with the provided key and valueSerdes.Serialized<K,V>withKeySerde(Serde<K> keySerde)Deprecated.Construct aSerializedinstance with the provided keySerde.Serialized<K,V>withValueSerde(Serde<V> valueSerde)Deprecated.Construct aSerializedinstance 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 aSerializedinstance with the provided key and valueSerdes. If theSerdeparams arenullthe 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
Serializedconfigured with the provided serdes
-
withKeySerde
public Serialized<K,V> withKeySerde(Serde<K> keySerde)
Deprecated.Construct aSerializedinstance with the provided keySerde. If theSerdeparams 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
Serializedconfigured with the provided key serde
-
withValueSerde
public Serialized<K,V> withValueSerde(Serde<V> valueSerde)
Deprecated.Construct aSerializedinstance with the provided valueSerde. If theSerdeparams 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
Serializedconfigured with the provided key serde
-
-