Class FuzzyStringMatchFilter.ThresholdMatchingMethod<T extends Number>
java.lang.Object
com.evolveum.midpoint.prism.query.FuzzyStringMatchFilter.ThresholdMatchingMethod<T>
- All Implemented Interfaces:
FuzzyStringMatchFilter.FuzzyMatchingMethod
,Serializable
- Direct Known Subclasses:
FuzzyStringMatchFilter.Levenshtein
,FuzzyStringMatchFilter.Similarity
- Enclosing interface:
- FuzzyStringMatchFilter<T>
public abstract static class FuzzyStringMatchFilter.ThresholdMatchingMethod<T extends Number>
extends Object
implements FuzzyStringMatchFilter.FuzzyMatchingMethod
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionabstract T
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
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.prism.query.FuzzyStringMatchFilter.FuzzyMatchingMethod
getMethodName, matches
-
Method Details
-
getThreshold
-
getThresholdRequired
-
isInclusive
public boolean isInclusive() -
computeMatchMetricValue
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). -
getMetricValueClass
Returns the Java type of the metric being used by this method (Integer, Float, ...). TODO consider removal -
getAttributes
- Specified by:
getAttributes
in interfaceFuzzyStringMatchFilter.FuzzyMatchingMethod
-
toString
-