Package io.debezium.serde
Class DebeziumSerdes
- java.lang.Object
-
- io.debezium.serde.DebeziumSerdes
-
@Incubating public class DebeziumSerdes extends Object
A factory class for Debezium provided serializers/deserializers.- Author:
- Jiri Pechanec
-
-
Constructor Summary
Constructors Constructor Description DebeziumSerdes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> org.apache.kafka.common.serialization.Serde<T>
payloadJson(Class<T> objectType)
Provides aSerde
implementation that maps JSON Debezium change events into aT
Java object.
-
-
-
Method Detail
-
payloadJson
public static <T> org.apache.kafka.common.serialization.Serde<T> payloadJson(Class<T> objectType)
Provides aSerde
implementation that maps JSON Debezium change events into aT
Java object. When used as key deserializer, then the key field(s) are mapped into a corresponding Java object. When used as value deserializer, its behaviour is driven by thefrom.field
config option:- not set: maps complete message envelope
before
orafter
: extracts the given field from the envelope and maps it
payload
field to get the envelope and apply the rules above.- Type Parameters:
T
- type to which JSON is mapped- Parameters:
objectType
- type to which JSON is mapped- Returns:
- serializer/deserializer to convert JSON to/from Java class
-
-