Interface PostProcessor

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
ReselectColumnsPostProcessor

@Incubating public interface PostProcessor extends AutoCloseable
A contract that defines a post-processing step that can be applied to any outgoing event before it is added to the change event queue. While this may seem similar to a Kafka Transformation, the difference is that a post processor operates on the raw Struct objects which are still mutable, allowing for a variety of use cases that wish to have the full data set of a row for the post-processing step. In addition, there are several injection-aware contracts that can be used in conjunction with the post processor to automatically have specific Debezium internal objects injected into the post processor automatically at connector start-up.
Author:
Chris Cranford
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(Object key, org.apache.kafka.connect.data.Struct value)
    Apply the post processor to the supplied key and value.
    void
    Close any resources
    void
    configure(Map<String,?> properties)
    Configure the post processor.
  • Method Details

    • configure

      void configure(Map<String,?> properties)
      Configure the post processor.
      Parameters:
      properties - map of configurable properties
    • apply

      void apply(Object key, org.apache.kafka.connect.data.Struct value)
      Apply the post processor to the supplied key and value.
      Parameters:
      key - the event's key, may be null
      value - the event's value, may be null
    • close

      void close()
      Close any resources
      Specified by:
      close in interface AutoCloseable