Package io.debezium.schema
Class UnicodeReplacementFunction
java.lang.Object
io.debezium.schema.UnicodeReplacementFunction
- All Implemented Interfaces:
ReplacementFunction
- Direct Known Subclasses:
FieldNameUnicodeReplacementFunction
An unicode replacement implementation of
ReplacementFunction- Author:
- Harvey Yue
-
Field Summary
Fields inherited from interface io.debezium.spi.common.ReplacementFunction
REPLACEMENT_CHAR, UNDERSCORE_REPLACEMENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisValidFirstCharacter(char c) Use underscore as escape sequence instead of backslash in UnicodeReplacementFunction, so treat underscore as an invalid character is expected.replace(char invalid) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.debezium.spi.common.ReplacementFunction
isValidNonFirstCharacter
-
Constructor Details
-
UnicodeReplacementFunction
public UnicodeReplacementFunction()
-
-
Method Details
-
replace
- Specified by:
replacein interfaceReplacementFunction
-
isValidFirstCharacter
public boolean isValidFirstCharacter(char c) Use underscore as escape sequence instead of backslash in UnicodeReplacementFunction, so treat underscore as an invalid character is expected. Legal characters are [a-zA-Z] for the first character and [a-zA-Z0-9.] thereafter.- Specified by:
isValidFirstCharacterin interfaceReplacementFunction
-