org.axiondb.functions
public class SoundexFunction extends BaseFunction implements ScalarFunction, FunctionFactory
Version: $Revision: 1.4 $ $Date: 2005/03/03 02:22:00 $
Constructor Summary | |
---|---|
SoundexFunction() Creates a new instance of Class | |
SoundexFunction(String name) Creates a new instance of Class |
Method Summary | |
---|---|
Object | evaluate(RowDecorator row) |
DataType | getDataType() |
boolean | isValid() |
ConcreteFunction | makeNewInstance() |
static String | soundex(String s)
Returns a four character code representing the sound of the given
String . |
String
. Non-ASCCI characters in the input String
are
ignored.
This method was rewritten for Axion to comply with the description at http://www.nara.gov/genealogy/coding.html .
Parameters: s the String
for which to calculate the 4 character
SOUNDEX
value
Returns: the 4 character SOUNDEX
value for the given
String