org.axiondb.functions

Class SoundexFunction

public class SoundexFunction extends BaseFunction implements ScalarFunction, FunctionFactory

Version: $Revision: 1.4 $ $Date: 2005/03/03 02:22:00 $

Author: Sudhendra Seshachala Ahimanikya Satapathy

Constructor Summary
SoundexFunction()
Creates a new instance of Class
SoundexFunction(String name)
Creates a new instance of Class
Method Summary
Objectevaluate(RowDecorator row)
DataTypegetDataType()
booleanisValid()
ConcreteFunctionmakeNewInstance()
static Stringsoundex(String s)
Returns a four character code representing the sound of the given String.

Constructor Detail

SoundexFunction

public SoundexFunction()
Creates a new instance of Class

SoundexFunction

public SoundexFunction(String name)
Creates a new instance of Class

Method Detail

evaluate

public Object evaluate(RowDecorator row)

getDataType

public DataType getDataType()
StringType

isValid

public boolean isValid()

makeNewInstance

public ConcreteFunction makeNewInstance()

soundex

public static String soundex(String s)
Returns a four character code representing the sound of the given 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