Package org.apache.drill.exec.udfs
Class PhoneticFunctions.ColognePhoneticFunction
java.lang.Object
org.apache.drill.exec.udfs.PhoneticFunctions.ColognePhoneticFunction
- All Implemented Interfaces:
DrillFunc
,DrillSimpleFunc
- Enclosing class:
- PhoneticFunctions
public static class PhoneticFunctions.ColognePhoneticFunction
extends Object
implements DrillSimpleFunc
Encodes a string into a Cologne Phonetic value.
Implements the Kölner Phonetik (Cologne Phonetic) algorithm issued by Hans Joachim Postel in 1969.
The Kölner Phonetik is a phonetic algorithm which is optimized for the German language. It is related to the well-known soundex algorithm.
Usage: SELECT cologne_phonetic( string ) FROM...
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ColognePhoneticFunction
public ColognePhoneticFunction()
-
-
Method Details
-
setup
public void setup()- Specified by:
setup
in interfaceDrillSimpleFunc
-
eval
public void eval()- Specified by:
eval
in interfaceDrillSimpleFunc
-