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 Details

    • DebeziumSerdes

      public DebeziumSerdes()
  • Method Details

    • payloadJson

      public static <T> org.apache.kafka.common.serialization.Serde<T> payloadJson(Class<T> objectType)
      Provides a Serde implementation that maps JSON Debezium change events into a T 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 the from.field config option:
      • not set: maps complete message envelope
      • before or after: extracts the given field from the envelope and maps it
      If schema is enabled then the serde will extract the 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