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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Levenshtein(Integer threshold, boolean inclusive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Integer
computeMatchMetricValue(String lValue, String rValue)
Computes the appropriate fuzzy match metric - the one that is being compared with the threshold.QName
getMethodName()
Class<Integer>
getMetricValueClass()
Returns the Java type of the metric being used by this method (Integer, Float, ...).boolean
matches(String lValue, String rValue)
-
Methods inherited from class com.evolveum.midpoint.prism.query.FuzzyStringMatchFilter.ThresholdMatchingMethod
getAttributes, getThreshold, getThresholdRequired, isInclusive, toString
-
-
-
-
Constructor Detail
-
Levenshtein
public Levenshtein(Integer threshold, boolean inclusive)
-
-
Method Detail
-
getMethodName
public QName getMethodName()
-
computeMatchMetricValue
@NotNull public @NotNull Integer computeMatchMetricValue(String lValue, String rValue)
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
public Class<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>
-
-