|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.axiondb.BaseSelectable
org.axiondb.functions.BaseFunction
org.axiondb.functions.SoundexFunction
public class SoundexFunction
Field Summary |
---|
Fields inherited from class org.axiondb.BaseSelectable |
---|
_hash |
Constructor Summary | |
---|---|
SoundexFunction()
Creates a new instance of Class |
|
SoundexFunction(java.lang.String name)
Creates a new instance of Class |
Method Summary | |
---|---|
java.lang.Object |
evaluate(RowDecorator row)
|
DataType |
getDataType()
StringType |
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 . |
Methods inherited from class org.axiondb.functions.BaseFunction |
---|
addArgument, getArgument, getArgumentCount, setArgument, setVariableContext, toString |
Methods inherited from class org.axiondb.BaseSelectable |
---|
getAlias, getLabel, getName, setAlias, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.axiondb.Function |
---|
addArgument, getAlias, getArgument, getArgumentCount, getName, setAlias, setArgument |
Methods inherited from interface org.axiondb.Selectable |
---|
getLabel, setVariableContext |
Constructor Detail |
---|
public SoundexFunction()
public SoundexFunction(java.lang.String name)
Method Detail |
---|
public ConcreteFunction makeNewInstance()
makeNewInstance
in interface FunctionFactory
public DataType getDataType()
StringType
getDataType
in interface Selectable
getDataType
in class BaseFunction
public java.lang.Object evaluate(RowDecorator row) throws AxionException
evaluate
in interface ScalarFunction
evaluate
in interface Selectable
AxionException
public boolean isValid()
isValid
in interface ConcreteFunction
isValid
in class BaseFunction
public 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
value
SOUNDEX
value for the given
String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |