Package io.debezium.transforms
Class SmtManager<R extends org.apache.kafka.connect.connector.ConnectRecord<R>>
java.lang.Object
io.debezium.transforms.SmtManager<R>
- Type Parameters:
R
- the subtype ofConnectRecord
on which the transformation will operate
public class SmtManager<R extends org.apache.kafka.connect.connector.ConnectRecord<R>>
extends Object
A class used by all Debezium supplied SMTs to centralize common logic.
- Author:
- Jiri Pechanec
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isValidEnvelope
(R record) boolean
isValidKey
(R record) void
validate
(Configuration configuration, Field.Set fields) Validates the suppliedConfiguration
based on the given fields and throws an exception in the event that there are any validation errors.
-
Field Details
-
RECORD_ENVELOPE_KEY_SCHEMA_NAME_SUFFIX
- See Also:
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
SmtManager
-
-
Method Details
-
isValidEnvelope
-
isValidKey
-
validate
Validates the suppliedConfiguration
based on the given fields and throws an exception in the event that there are any validation errors. The exception thrown will bubble up to the Kafka Connect framework like as if it were a connector field validation error.- Parameters:
configuration
- the configuration, must not benull
fields
- the fields to validate in the configuration- Throws:
org.apache.kafka.common.config.ConfigException
- if any configuration field validation failed
-