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 aSerdeimplementation that maps JSON Debezium change events into aTJava object.
-
-
-
Method Detail
-
payloadJson
public static <T> org.apache.kafka.common.serialization.Serde<T> payloadJson(Class<T> objectType)
Provides aSerdeimplementation that maps JSON Debezium change events into aTJava 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.fieldconfig option:- not set: maps complete message envelope
beforeorafter: extracts the given field from the envelope and maps it
payloadfield 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
-
-