Package io.debezium.connector
Interface SourceInfoStructMaker<T extends AbstractSourceInfo>
- Type Parameters:
T
- SourceInfo specific for the connector
- All Known Implementing Classes:
AbstractSourceInfoStructMaker
,LegacyV1AbstractSourceInfoStructMaker
public interface SourceInfoStructMaker<T extends AbstractSourceInfo>
Converts the connector SourceInfo into publicly visible source field of the message.
It is expected that when the connector SourceInfo schema changes then a legacy class will be created
that could be enable in connector config to provide old format of the source.
- Author:
- Jiri Pechanec
-
Method Summary
-
Method Details
-
schema
org.apache.kafka.connect.data.Schema schema()Returns the schema of the source info. -
struct
Converts the connector's source info into the struct to be included in the message as the source field.- Parameters:
sourceInfo
-- Returns:
- the converted struct
-