Class PhoneticFunctions.DaitchMokotoffFunction

java.lang.Object
org.apache.drill.exec.udfs.PhoneticFunctions.DaitchMokotoffFunction
All Implemented Interfaces:
DrillFunc, DrillSimpleFunc
Enclosing class:
PhoneticFunctions

public static class PhoneticFunctions.DaitchMokotoffFunction extends Object implements DrillSimpleFunc
Encodes a string into a Daitch-Mokotoff Soundex value. The Daitch-Mokotoff Soundex algorithm is a refinement of the Russel and American Soundex algorithms, yielding greater accuracy in matching especially Slavish and Yiddish surnames with similar pronunciation but differences in spelling.

The main differences compared to the other soundex variants are: coded names are 6 digits long the initial character of the name is coded rules to encoded multi-character n-grams multiple possible encodings for the same name (branching)

Usage: SELECT dm_soundex( string ) FROM...

  • Constructor Details

    • DaitchMokotoffFunction

      public DaitchMokotoffFunction()
  • Method Details