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 ofConnectRecordon 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
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisValidEnvelope(R record) booleanisValidKey(R record) voidvalidate(Configuration configuration, Field.Set fields) Validates the suppliedConfigurationbased 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 suppliedConfigurationbased 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 benullfields- the fields to validate in the configuration- Throws:
org.apache.kafka.common.config.ConfigException- if any configuration field validation failed
-