java.lang.Object
com.pervasive.datarush.matching.functions.StringEncodings
A collection of functions for phonetic encoding of string values.
Phonetic encoding represents words by how they are pronounced.
This can be useful for comparing strings such as names, as
variant spellings are encoded into the same form.
All functions in this set will return a null value if the input string is null valued.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScalarValuedFunctioncaverphone(ScalarValuedFunction value) Builds a function phonetically encoding the string value to which the specified expression evaluates using the Caverphone algorithm.static ScalarValuedFunctioncaverphone(String field) Builds a function phonetically encoding the string value in the specified field using the Caverphone algorithm.static ScalarValuedFunctionBuilds a function phonetically encoding the string value to which the specified expression evaluates using the Double Metaphone algorithm.static ScalarValuedFunctiondoubleMetaphone(String field) Builds a function phonetically encoding the string value in the specified field using the Double Metaphone algorithm.static ScalarValuedFunctionmetaphone(ScalarValuedFunction value) Builds a function phonetically encoding the string value to which the specified expression evaluates using the Metaphone algorithm.static ScalarValuedFunctionBuilds a function phonetically encoding the string value in the specified field using the Metaphone algorithm.static ScalarValuedFunctionBuilds a function phonetically encoding the string value to which the specified expression evaluates using the refined Soundex algorithm.static ScalarValuedFunctionrefinedSoundex(String field) Builds a function phonetically encoding the string value in the specified field using the refined Soundex algorithm.static ScalarValuedFunctionsoundex(ScalarValuedFunction value) Builds a function phonetically encoding the string value to which the specified expression evaluates using the Soundex algorithm.static ScalarValuedFunctionBuilds a function phonetically encoding the string value in the specified field using the Soundex algorithm.
-
Constructor Details
-
StringEncodings
public StringEncodings()
-
-
Method Details
-
caverphone
Builds a function phonetically encoding the string value in the specified field using the Caverphone algorithm.- Parameters:
field- the record field to encode- Returns:
- the specified function
-
caverphone
Builds a function phonetically encoding the string value to which the specified expression evaluates using the Caverphone algorithm.- Parameters:
value- a string expression to encode- Returns:
- the specified function
-
metaphone
Builds a function phonetically encoding the string value in the specified field using the Metaphone algorithm.- Parameters:
field- the record field to encode- Returns:
- the specified function
-
metaphone
Builds a function phonetically encoding the string value to which the specified expression evaluates using the Metaphone algorithm.- Parameters:
value- a string expression to encode- Returns:
- the specified function
-
doubleMetaphone
Builds a function phonetically encoding the string value in the specified field using the Double Metaphone algorithm.- Parameters:
field- the record field to encode- Returns:
- the specified function
-
doubleMetaphone
Builds a function phonetically encoding the string value to which the specified expression evaluates using the Double Metaphone algorithm.- Parameters:
value- a string expression to encode- Returns:
- the specified function
-
soundex
Builds a function phonetically encoding the string value in the specified field using the Soundex algorithm.- Parameters:
field- the record field to encode- Returns:
- the specified function
-
soundex
Builds a function phonetically encoding the string value to which the specified expression evaluates using the Soundex algorithm.- Parameters:
value- a string expression to encode- Returns:
- the specified function
-
refinedSoundex
Builds a function phonetically encoding the string value in the specified field using the refined Soundex algorithm.- Parameters:
field- the record field to encode- Returns:
- the specified function
-
refinedSoundex
Builds a function phonetically encoding the string value to which the specified expression evaluates using the refined Soundex algorithm.- Parameters:
value- a string expression to encode- Returns:
- the specified function
-