Class AtlasMapSMT<R extends org.apache.kafka.connect.connector.ConnectRecord<R>>

  • Type Parameters:
    R - ConnectRecord type
    All Implemented Interfaces:
    Closeable, AutoCloseable, org.apache.kafka.common.Configurable, org.apache.kafka.connect.transforms.Transformation<R>

    public class AtlasMapSMT<R extends org.apache.kafka.connect.connector.ConnectRecord<R>>
    extends Object
    implements org.apache.kafka.connect.transforms.Transformation<R>
    Kafka Connect Single Message Transformation that uses AtlasMap to transform. This maps from 2 source Documents which are key and value, to the 2 target Documents (key and value). Not only the Kafka Connect data structure defined with the Kafka Connect schema, the Document could be also a serialized data format that is supported by AtlasMap, such as JSON or XML.
    • Field Detail

      • CONFIG_DEF

        public static final org.apache.kafka.common.config.ConfigDef CONFIG_DEF
        Config Def.
    • Constructor Detail

      • AtlasMapSMT

        public AtlasMapSMT()
    • Method Detail

      • configure

        public void configure​(Map<String,​?> props)
        Specified by:
        configure in interface org.apache.kafka.common.Configurable
      • apply

        public R apply​(R record)
        Specified by:
        apply in interface org.apache.kafka.connect.transforms.Transformation<R extends org.apache.kafka.connect.connector.ConnectRecord<R>>
      • config

        public org.apache.kafka.common.config.ConfigDef config()
        Specified by:
        config in interface org.apache.kafka.connect.transforms.Transformation<R extends org.apache.kafka.connect.connector.ConnectRecord<R>>
      • close

        public void close()
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Specified by:
        close in interface org.apache.kafka.connect.transforms.Transformation<R extends org.apache.kafka.connect.connector.ConnectRecord<R>>