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