Package io.debezium.schema
Class TopicSelector.TopicNameSanitizer<I extends DataCollectionId>
java.lang.Object
io.debezium.schema.TopicSelector.TopicNameSanitizer<I>
- All Implemented Interfaces:
TopicSelector.DataCollectionTopicNamer<I>
- Enclosing class:
- TopicSelector<I extends DataCollectionId>
private static class TopicSelector.TopicNameSanitizer<I extends DataCollectionId>
extends Object
implements TopicSelector.DataCollectionTopicNamer<I>
A topic namer that replaces any characters invalid in a topic name with
_
.-
Field Summary
Modifier and TypeFieldDescriptionprivate final TopicSelector.DataCollectionTopicNamer<I>
private static final org.slf4j.Logger
private static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
isValidTopicNameCharacter
(char c) Whether the given character is a legal character of a Kafka topic name.topicNameFor
(I id, String prefix, String delimiter)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
REPLACEMENT_CHAR
- See Also:
-
delegate
-
-
Constructor Details
-
TopicNameSanitizer
TopicNameSanitizer(TopicSelector.DataCollectionTopicNamer<I> delegate)
-
-
Method Details
-
topicNameFor
- Specified by:
topicNameFor
in interfaceTopicSelector.DataCollectionTopicNamer<I extends DataCollectionId>
-
isValidTopicNameCharacter
private boolean isValidTopicNameCharacter(char c) Whether the given character is a legal character of a Kafka topic name. Legal characters are[a-zA-Z0-9._-]
.
-