This project provides transformations for Kafka Connect that will convert XML text to a Kafka Connect struct based on the configured XML schema. This transformation works by dynamically generating JAXB source with XJC with the xjc-kafka-connect-plugin loaded. This allows the transformation to efficiently convert XML to structured data for Kafka connect.
This transformation is used to rename fields in the key of an input struct based on a regular expression and a replacement string.
Name | Type | Importance | Default Value | Validator | Documentation |
---|---|---|---|---|---|
schema.path | List | High | Urls to the schemas to load. http and https paths are supported |
transforms=Key
transforms.Key.type=com.github.jcustenborder.kafka.connect.transform.xml.FromXml$Value
# The following values must be configured.
transforms.Key.schema.path = < Configure me >
{
"name": "connector1",
"config": {
"connector.class": "com.github.jcustenborder.kafka.connect.transform.xml.FromXml$Value",
"transforms": "Key",
"transforms.Key.type": "com.github.jcustenborder.kafka.connect.transform.xml.FromXml$Value",
"transforms.Key.schema.path": "< Configure me >"
}
}
This transformation is used to rename fields in the key of an input struct based on a regular expression and a replacement string.
Name | Type | Importance | Default Value | Validator | Documentation |
---|---|---|---|---|---|
schema.path | List | High | Urls to the schemas to load. http and https paths are supported |
transforms=Key
transforms.Key.type=com.github.jcustenborder.kafka.connect.transform.xml.FromXml$Value
# The following values must be configured.
transforms.Key.schema.path = < Configure me >
{
"name": "connector1",
"config": {
"connector.class": "com.github.jcustenborder.kafka.connect.transform.xml.FromXml$Value",
"transforms": "Key",
"transforms.Key.type": "com.github.jcustenborder.kafka.connect.transform.xml.FromXml$Value",
"transforms.Key.schema.path": "< Configure me >"
}
}