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)
double
noiseFactor()
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)
double
similarityThreshold()
Similator<? super E>
similator()
double
singletonPrecedenceBonus()
double
singletonPrecedenceThreshold()
This is a measure of how "eager" the algorithm is to find as many matches as possible.MatchValidator<? super E>
validator()
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
similarityThreshold
public double similarityThreshold()- Specified by:
similarityThreshold
in interfaceMultiMatcher<E>
-
singletonPrecedenceThreshold
public double singletonPrecedenceThreshold()Description copied from interface:MultiMatcher
This 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:
singletonPrecedenceThreshold
in interfaceMultiMatcher<E>
-
singletonPrecedenceBonus
public double singletonPrecedenceBonus()- Specified by:
singletonPrecedenceBonus
in interfaceMultiMatcher<E>
-
noiseFactor
public double noiseFactor()- Specified by:
noiseFactor
in interfaceMultiMatcher<E>
-
equalator
- Specified by:
equalator
in interfaceMultiMatcher<E>
-
similator
- Specified by:
similator
in interfaceMultiMatcher<E>
-
validator
- Specified by:
validator
in interfaceMultiMatcher<E>
-
setSimilarityThreshold
- Specified by:
setSimilarityThreshold
in interfaceMultiMatcher<E>
-
setSingletonPrecedenceThreshold
- Specified by:
setSingletonPrecedenceThreshold
in interfaceMultiMatcher<E>
-
setSingletonPrecedenceBonus
- Specified by:
setSingletonPrecedenceBonus
in interfaceMultiMatcher<E>
-
setNoisefactor
- Specified by:
setNoisefactor
in interfaceMultiMatcher<E>
-
setSimilator
- Specified by:
setSimilator
in interfaceMultiMatcher<E>
-
setEqualator
- Specified by:
setEqualator
in interfaceMultiMatcher<E>
-
setValidator
- Specified by:
setValidator
in interfaceMultiMatcher<E>
-
match
public MultiMatch<E> match(XGettingCollection<? extends E> source, XGettingCollection<? extends E> target)- Specified by:
match
in interfaceMultiMatcher<E>
-