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()
-
-
-
Method Detail
-
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
public Equalator<? super E> equalator()
- Specified by:
equalator
in interfaceMultiMatcher<E>
-
similator
public Similator<? super E> similator()
- Specified by:
similator
in interfaceMultiMatcher<E>
-
validator
public MatchValidator<? super E> validator()
- Specified by:
validator
in interfaceMultiMatcher<E>
-
setSimilarityThreshold
public MultiMatcher<E> setSimilarityThreshold(double similarityThreshold)
- Specified by:
setSimilarityThreshold
in interfaceMultiMatcher<E>
-
setSingletonPrecedenceThreshold
public MultiMatcher<E> setSingletonPrecedenceThreshold(double singletonPrecedenceThreshold)
- Specified by:
setSingletonPrecedenceThreshold
in interfaceMultiMatcher<E>
-
setSingletonPrecedenceBonus
public MultiMatcher<E> setSingletonPrecedenceBonus(double singletonPrecedenceBonus)
- Specified by:
setSingletonPrecedenceBonus
in interfaceMultiMatcher<E>
-
setNoisefactor
public MultiMatcher<E> setNoisefactor(double noiseFactor)
- Specified by:
setNoisefactor
in interfaceMultiMatcher<E>
-
setSimilator
public MultiMatcher<E> setSimilator(Similator<? super E> similator)
- Specified by:
setSimilator
in interfaceMultiMatcher<E>
-
setEqualator
public MultiMatcher<E> setEqualator(Equalator<? super E> equalator)
- Specified by:
setEqualator
in interfaceMultiMatcher<E>
-
setValidator
public MultiMatcher<E> setValidator(MatchValidator<? super E> validator)
- 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>
-
-