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
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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.
-
Constructor Details
-
DebeziumSerdes
public DebeziumSerdes()
-
-
Method Details
-
payloadJson
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
-