Class Transformations

java.lang.Object
io.debezium.embedded.Transformations
All Implemented Interfaces:
Closeable, AutoCloseable

public class Transformations extends Object implements Closeable
Composite class representing transformation chain.
Author:
Jiri Pechanec
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • TYPE_SUFFIX

      private static final String TYPE_SUFFIX
      See Also:
    • PREDICATE_SUFFIX

      private static final String PREDICATE_SUFFIX
      See Also:
    • NEGATE_SUFFIX

      private static final String NEGATE_SUFFIX
      See Also:
    • config

      private final Configuration config
    • transforms

      private final List<org.apache.kafka.connect.transforms.Transformation<org.apache.kafka.connect.source.SourceRecord>> transforms
    • predicates

      private final Predicates predicates
  • Constructor Details

  • Method Details

    • transformationConfigNamespace

      private static String transformationConfigNamespace(String name)
    • getTransformation

      @VisibleForTesting org.apache.kafka.connect.transforms.Transformation<org.apache.kafka.connect.source.SourceRecord> getTransformation(String name)
    • transform

      public org.apache.kafka.connect.source.SourceRecord transform(org.apache.kafka.connect.source.SourceRecord record)
    • createPredicateTransformation

      private static org.apache.kafka.connect.transforms.Transformation<org.apache.kafka.connect.source.SourceRecord> createPredicateTransformation(boolean negate, org.apache.kafka.connect.transforms.predicates.Predicate<org.apache.kafka.connect.source.SourceRecord> predicate, org.apache.kafka.connect.transforms.Transformation<org.apache.kafka.connect.source.SourceRecord> transformation)
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException