Package org.apache.drill.exec.udfs
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 Summary
-
Method Summary
-
Constructor Details
-
DaitchMokotoffFunction
public DaitchMokotoffFunction()
-
-
Method Details
-
setup
public void setup()- Specified by:
setup
in interfaceDrillSimpleFunc
-
eval
public void eval()- Specified by:
eval
in interfaceDrillSimpleFunc
-