import org.apache.kafka.streams.scala.Serdes._
Serdes
Serdes
is a Scala object that contains the implicit conversions with serializers and deserializers for known Scala and Java types and fromFn to create a new Serde[T]
(from T
or (String, T)
).
You should import Serdes
to use the implicit conversions in a Scala application that uses the Kafka Streams library.
You should also use Serdes
when defining StreamsConfig.DEFAULT_KEY_SERDE_CLASS_CONFIG
and StreamsConfig.DEFAULT_VALUE_SERDE_CLASS_CONFIG
.
import org.apache.kafka.streams.scala.Serdes._
Serdes.String.getClass.getName
Name | Serde |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|