Package one.microstream.util.similarity
Class MultiMatcher.Default<E>
java.lang.Object
one.microstream.util.similarity.MultiMatcher.Default<E>
- All Implemented Interfaces:
MultiMatcher<E>
- Enclosing interface:
- MultiMatcher<E>
public static class MultiMatcher.Default<E> extends Object implements MultiMatcher<E>
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.util.similarity.MultiMatcher
MultiMatcher.Default<E> -
Constructor Summary
Constructors Modifier Constructor Description protectedDefault() -
Method Summary
Modifier and Type Method Description Equalator<? super E>equalator()MultiMatch<E>match(XGettingCollection<? extends E> source, XGettingCollection<? extends E> target)doublenoiseFactor()MultiMatcher<E>setEqualator(Equalator<? super E> equalator)MultiMatcher<E>setNoisefactor(double noiseFactor)MultiMatcher<E>setSimilarityThreshold(double similarityThreshold)MultiMatcher<E>setSimilator(Similator<? super E> similator)MultiMatcher<E>setSingletonPrecedenceBonus(double singletonPrecedenceBonus)MultiMatcher<E>setSingletonPrecedenceThreshold(double singletonPrecedenceThreshold)MultiMatcher<E>setValidator(MatchValidator<? super E> validator)doublesimilarityThreshold()Similator<? super E>similator()doublesingletonPrecedenceBonus()doublesingletonPrecedenceThreshold()This is a measure of how "eager" the algorithm is to find as many matches as possible.MatchValidator<? super E>validator()
-
Constructor Details
-
Default
protected Default()
-
-
Method Details
-
similarityThreshold
public double similarityThreshold()- Specified by:
similarityThresholdin interfaceMultiMatcher<E>
-
singletonPrecedenceThreshold
public double singletonPrecedenceThreshold()Description copied from interface:MultiMatcherThis is a measure of how "eager" the algorithm is to find as many matches as possible. The lower this threshold is, the more "single potential match" items will be preferred over actually better matching pairs just to not leave them unmatched. To deactivate this special casing, set the threshold to 1.0, meaning only items that fit perfectly anyway take precedence over others.- Specified by:
singletonPrecedenceThresholdin interfaceMultiMatcher<E>
-
singletonPrecedenceBonus
public double singletonPrecedenceBonus()- Specified by:
singletonPrecedenceBonusin interfaceMultiMatcher<E>
-
noiseFactor
public double noiseFactor()- Specified by:
noiseFactorin interfaceMultiMatcher<E>
-
equalator
- Specified by:
equalatorin interfaceMultiMatcher<E>
-
similator
- Specified by:
similatorin interfaceMultiMatcher<E>
-
validator
- Specified by:
validatorin interfaceMultiMatcher<E>
-
setSimilarityThreshold
- Specified by:
setSimilarityThresholdin interfaceMultiMatcher<E>
-
setSingletonPrecedenceThreshold
- Specified by:
setSingletonPrecedenceThresholdin interfaceMultiMatcher<E>
-
setSingletonPrecedenceBonus
- Specified by:
setSingletonPrecedenceBonusin interfaceMultiMatcher<E>
-
setNoisefactor
- Specified by:
setNoisefactorin interfaceMultiMatcher<E>
-
setSimilator
- Specified by:
setSimilatorin interfaceMultiMatcher<E>
-
setEqualator
- Specified by:
setEqualatorin interfaceMultiMatcher<E>
-
setValidator
- Specified by:
setValidatorin interfaceMultiMatcher<E>
-
match
public MultiMatch<E> match(XGettingCollection<? extends E> source, XGettingCollection<? extends E> target)- Specified by:
matchin interfaceMultiMatcher<E>
-