Interface SourceRecordMapper<T>

Type Parameters:
T - The desired type you want to map the Kafka source record
All Superinterfaces:
Serializable
All Known Implementing Classes:
SourceRecordJson.SourceRecordJsonMapper
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SourceRecordMapper<T> extends Serializable
Interface used to map a Kafka source record.
  • Method Summary

    Modifier and Type
    Method
    Description
    mapSourceRecord(org.apache.kafka.connect.source.SourceRecord sourceRecord)
     
  • Method Details

    • mapSourceRecord

      T mapSourceRecord(org.apache.kafka.connect.source.SourceRecord sourceRecord) throws Exception
      Throws:
      Exception