Package io.debezium.serde
Class DebeziumSerdes
java.lang.Object
io.debezium.serde.DebeziumSerdes
A factory class for Debezium provided serializers/deserializers.
- Author:
- Jiri Pechanec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> org.apache.kafka.common.serialization.Serde<T>payloadJson(Class<T> objectType) Provides aSerdeimplementation that maps JSON Debezium change events into aTJava object.
-
Constructor Details
-
DebeziumSerdes
public DebeziumSerdes()
-
-
Method Details
-
payloadJson
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
-