Class UnicodeReplacementFunction

java.lang.Object
io.debezium.schema.UnicodeReplacementFunction
All Implemented Interfaces:
io.debezium.spi.common.ReplacementFunction
Direct Known Subclasses:
FieldNameUnicodeReplacementFunction

@Incubating public class UnicodeReplacementFunction extends Object implements io.debezium.spi.common.ReplacementFunction
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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, wait

    Methods inherited from interface io.debezium.spi.common.ReplacementFunction

    isValidNonFirstCharacter
  • Constructor Details

    • UnicodeReplacementFunction

      public UnicodeReplacementFunction()
  • Method Details

    • replace

      public String replace(char invalid)
      Specified by:
      replace in interface io.debezium.spi.common.ReplacementFunction
    • 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:
      isValidFirstCharacter in interface io.debezium.spi.common.ReplacementFunction