Package io.debezium.converters.spi
Interface CloudEventsProvider
-
public interface CloudEventsProvider
AServiceLoader
interface that connectors should implement if they wish to provide a way to emit change events using the CloudEvents converter and format.- Author:
- Chris Cranford
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CloudEventsMaker
createMaker(RecordParser parser, SerializerType contentType, String dataSchemaUriBase)
Create a concrete CloudEvents maker using the outputs of a record parser.RecordParser
createParser(org.apache.kafka.connect.data.Schema schema, org.apache.kafka.connect.data.Struct record)
Create a concrete parser of a change record for the connector.String
getName()
The connector name specified in the record's source info block.
-
-
-
Method Detail
-
getName
String getName()
The connector name specified in the record's source info block.- Returns:
- the provider name
-
createParser
RecordParser createParser(org.apache.kafka.connect.data.Schema schema, org.apache.kafka.connect.data.Struct record)
Create a concrete parser of a change record for the connector.- Parameters:
schema
- the schema of the recordrecord
- the value of the record- Returns:
- a concrete parser
-
createMaker
CloudEventsMaker createMaker(RecordParser parser, SerializerType contentType, String dataSchemaUriBase)
Create a concrete CloudEvents maker using the outputs of a record parser. Also need to specify the data content type (that is the serialization format of the data attribute).- Parameters:
parser
- the parser of a change recordcontentType
- the data content type of CloudEventsdataSchemaUriBase
- the URI of the schema in case of Avro; may be null- Returns:
- a concrete CloudEvents maker
-
-