Class FuzzyStringMatchFilter.Levenshtein
java.lang.Object
com.evolveum.midpoint.prism.query.FuzzyStringMatchFilter.ThresholdMatchingMethod<Integer>
com.evolveum.midpoint.prism.query.FuzzyStringMatchFilter.Levenshtein
- All Implemented Interfaces:
FuzzyStringMatchFilter.FuzzyMatchingMethod
,Serializable
- Enclosing interface:
- FuzzyStringMatchFilter<T>
public static class FuzzyStringMatchFilter.Levenshtein
extends FuzzyStringMatchFilter.ThresholdMatchingMethod<Integer>
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull Integer
computeMatchMetricValue
(String lValue, String rValue) Computes the appropriate fuzzy match metric - the one that is being compared with the threshold.Returns the Java type of the metric being used by this method (Integer, Float, ...).boolean
Methods inherited from class com.evolveum.midpoint.prism.query.FuzzyStringMatchFilter.ThresholdMatchingMethod
getAttributes, getThreshold, getThresholdRequired, isInclusive, toString
-
Constructor Details
-
Levenshtein
-
-
Method Details
-
getMethodName
-
computeMatchMetricValue
Description copied from class:FuzzyStringMatchFilter.ThresholdMatchingMethod
Computes the appropriate fuzzy match metric - the one that is being compared with the threshold. For example, Levenshtein edit distance (an integer value) or trigram similarity value (a float).- Specified by:
computeMatchMetricValue
in classFuzzyStringMatchFilter.ThresholdMatchingMethod<Integer>
-
getMetricValueClass
Description copied from class:FuzzyStringMatchFilter.ThresholdMatchingMethod
Returns the Java type of the metric being used by this method (Integer, Float, ...). TODO consider removal- Specified by:
getMetricValueClass
in classFuzzyStringMatchFilter.ThresholdMatchingMethod<Integer>
-
matches
-