Package org.apache.drill.exec.udfs
Class PhoneticFunctions.NYSIISFunction
java.lang.Object
org.apache.drill.exec.udfs.PhoneticFunctions.NYSIISFunction
- All Implemented Interfaces:
DrillFunc
,DrillSimpleFunc
- Enclosing class:
- PhoneticFunctions
The New York State Identification and Intelligence System Phonetic Code, commonly known as NYSIIS, is a phonetic algorithm devised in 1970 as part of the New York State Identification and Intelligence System (now a part of the New York State Division of Criminal Justice Services). It features an accuracy increase of 2.7% over the traditional Soundex algorithm.
Encodes a string into a NYSIIS value. NYSIIS is an encoding used to relate similar names, but can also be used as a general purpose scheme to find word with similar phonemes.
Usage: SELECT nysiis(string) FROM...
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
NYSIISFunction
public NYSIISFunction()
-
-
Method Details
-
setup
public void setup()- Specified by:
setup
in interfaceDrillSimpleFunc
-
eval
public void eval()- Specified by:
eval
in interfaceDrillSimpleFunc
-