public class SoundexFunction extends BaseFunction implements ScalarFunction, FunctionFactory
_hash| Constructor and Description |
|---|
SoundexFunction()
Creates a new instance of Class
|
SoundexFunction(java.lang.String name)
Creates a new instance of Class
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
evaluate(RowDecorator row) |
DataType |
getDataType()
|
boolean |
isValid() |
ConcreteFunction |
makeNewInstance() |
static java.lang.String |
soundex(java.lang.String s)
Returns a four character code representing the sound of the given
String. |
addArgument, getArgument, getArgumentCount, setArgument, setVariableContext, toStringgetAlias, getLabel, getName, setAlias, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddArgument, getAlias, getArgument, getArgumentCount, getName, setAlias, setArgumentgetLabel, setVariableContextpublic SoundexFunction()
public SoundexFunction(java.lang.String name)
public ConcreteFunction makeNewInstance()
makeNewInstance in interface FunctionFactorypublic DataType getDataType()
getDataType in interface SelectablegetDataType in class BaseFunctionpublic java.lang.Object evaluate(RowDecorator row) throws AxionException
evaluate in interface ScalarFunctionevaluate in interface SelectableAxionExceptionpublic boolean isValid()
isValid in interface ConcreteFunctionisValid in class BaseFunctionpublic static java.lang.String soundex(java.lang.String s)
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 .
s - the String for which to calculate the 4 character
SOUNDEX valueSOUNDEX value for the given
String