Package org.apache.drill.exec.udfs
Class PhoneticFunctions.MetaphoneFunction
java.lang.Object
org.apache.drill.exec.udfs.PhoneticFunctions.MetaphoneFunction
- All Implemented Interfaces:
DrillFunc
,DrillSimpleFunc
- Enclosing class:
- PhoneticFunctions
Implements the Metaphone phonetic algorithm (https://en.wikipedia.org/wiki/Metaphone),
and calculates a given string's Metaphone value.
Usage: SELECT metaphone( string ) FROM...
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MetaphoneFunction
public MetaphoneFunction()
-
-
Method Details
-
setup
public void setup()- Specified by:
setup
in interfaceDrillSimpleFunc
-
eval
public void eval()- Specified by:
eval
in interfaceDrillSimpleFunc
-