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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.kafka.connect.data.Schemaschema()Returns the schema of the source info.org.apache.kafka.connect.data.Structstruct(T sourceInfo)Converts the connector's source info into the struct to be included in the message as the source field.
-
-
-
Method Detail
-
schema
org.apache.kafka.connect.data.Schema schema()
Returns the schema of the source info.
-
struct
org.apache.kafka.connect.data.Struct struct(T sourceInfo)
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
-
-