Class FieldNameUnderscoreReplacementFunction

java.lang.Object
io.debezium.schema.FieldNameUnderscoreReplacementFunction
All Implemented Interfaces:
ReplacementFunction

public class FieldNameUnderscoreReplacementFunction extends Object implements ReplacementFunction
A field name underscore replacement implementation of ReplacementFunction
Author:
Harvey Yue
  • Constructor Details

    • FieldNameUnderscoreReplacementFunction

      public FieldNameUnderscoreReplacementFunction()
  • Method Details

    • replace

      public String replace(char invalid)
      Specified by:
      replace in interface ReplacementFunction
    • isValidNonFirstCharacter

      public boolean isValidNonFirstCharacter(char c)
      Sanitize column names that are illegal in Avro Must conform to https://avro.apache.org/docs/1.7.7/spec.html#Names Legal characters are [a-zA-Z_] for the first character and [a-zA-Z0-9_] thereafter.
      Specified by:
      isValidNonFirstCharacter in interface ReplacementFunction