Class QueryElevationComponent.TrieSubsetMatcher.Builder<E extends Comparable<? super E>,M>
- java.lang.Object
-
- org.apache.solr.handler.component.QueryElevationComponent.TrieSubsetMatcher.Builder<E,M>
-
- Enclosing class:
- QueryElevationComponent.TrieSubsetMatcher<E extends Comparable<? super E>,M>
public static class QueryElevationComponent.TrieSubsetMatcher.Builder<E extends Comparable<? super E>,M> extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryElevationComponent.TrieSubsetMatcher.Builder<E,M>
addSubset(Collection<E> subset, M matchValue)
Adds a subset.QueryElevationComponent.TrieSubsetMatcher<E,M>
build()
-
-
-
Method Detail
-
addSubset
public QueryElevationComponent.TrieSubsetMatcher.Builder<E,M> addSubset(Collection<E> subset, M matchValue)
Adds a subset. If the subset is already registered, the new match value is added to the previous one(s).- Parameters:
subset
- The subset ofComparable
elements; it is copied. It is ignored if its size is0
. Any subset added is guaranteed to be returned byQueryElevationComponent.TrieSubsetMatcher.findSubsetsMatching(java.util.Collection<E>)
if it matches (i.e. is contained), even if two or more subsets are equal, or equal when ignoring duplicate elements.matchValue
- The match value provided each time the subset matches.- Returns:
- This builder.
-
build
public QueryElevationComponent.TrieSubsetMatcher<E,M> build()
-
-