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 Constructor Description Default()
-
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()
-
-
-
Method Detail
-
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
public Equalator<? super E> equalator()
- Specified by:
equalatorin interfaceMultiMatcher<E>
-
similator
public Similator<? super E> similator()
- Specified by:
similatorin interfaceMultiMatcher<E>
-
validator
public MatchValidator<? super E> validator()
- Specified by:
validatorin interfaceMultiMatcher<E>
-
setSimilarityThreshold
public MultiMatcher<E> setSimilarityThreshold(double similarityThreshold)
- Specified by:
setSimilarityThresholdin interfaceMultiMatcher<E>
-
setSingletonPrecedenceThreshold
public MultiMatcher<E> setSingletonPrecedenceThreshold(double singletonPrecedenceThreshold)
- Specified by:
setSingletonPrecedenceThresholdin interfaceMultiMatcher<E>
-
setSingletonPrecedenceBonus
public MultiMatcher<E> setSingletonPrecedenceBonus(double singletonPrecedenceBonus)
- Specified by:
setSingletonPrecedenceBonusin interfaceMultiMatcher<E>
-
setNoisefactor
public MultiMatcher<E> setNoisefactor(double noiseFactor)
- Specified by:
setNoisefactorin interfaceMultiMatcher<E>
-
setSimilator
public MultiMatcher<E> setSimilator(Similator<? super E> similator)
- Specified by:
setSimilatorin interfaceMultiMatcher<E>
-
setEqualator
public MultiMatcher<E> setEqualator(Equalator<? super E> equalator)
- Specified by:
setEqualatorin interfaceMultiMatcher<E>
-
setValidator
public MultiMatcher<E> setValidator(MatchValidator<? super E> validator)
- Specified by:
setValidatorin interfaceMultiMatcher<E>
-
match
public MultiMatch<E> match(XGettingCollection<? extends E> source, XGettingCollection<? extends E> target)
- Specified by:
matchin interfaceMultiMatcher<E>
-
-