public abstract class SearchDistance extends SearchComparator
| Constructor and Description |
|---|
SearchDistance(com.orchestranetworks.schema.SchemaNode schemaNode,
Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
abstract float |
getDistance(String target,
String other)
Returns the distance between two strings.
|
cloneMatching, equals, getLocale, getParameter, getSchemaNode, hashCode, isDateSupported, isFullTableScanRequired, isNullSupported, isNumericSupported, normalizeValue, setParameterpublic SearchDistance(com.orchestranetworks.schema.SchemaNode schemaNode,
Locale locale)
public abstract float getDistance(String target, String other)
baseString to be compared with otherString, the percentage of similarity will be calculated as follow.