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 -
Method Summary
Modifier and TypeMethodDescriptionaddSubset(Collection<E> subset, M matchValue) Adds a subset.build()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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 ofComparableelements; 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
-