private static class PartitionMatcher.PartitionMatcherFactory<T extends QueryMatch> extends java.lang.Object implements MatcherFactory<T>
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ExecutorService |
executor |
private MatcherFactory<T> |
matcherFactory |
private int |
threads |
Constructor and Description |
---|
PartitionMatcherFactory(java.util.concurrent.ExecutorService executor,
MatcherFactory<T> matcherFactory,
int threads) |
Modifier and Type | Method and Description |
---|---|
PartitionMatcher<T> |
createMatcher(IndexSearcher searcher)
Create a new
CandidateMatcher object, to select
queries to match against the passed-in IndexSearcher |
private final java.util.concurrent.ExecutorService executor
private final MatcherFactory<T extends QueryMatch> matcherFactory
private final int threads
PartitionMatcherFactory(java.util.concurrent.ExecutorService executor, MatcherFactory<T> matcherFactory, int threads)
public PartitionMatcher<T> createMatcher(IndexSearcher searcher)
MatcherFactory
CandidateMatcher
object, to select
queries to match against the passed-in IndexSearchercreateMatcher
in interface MatcherFactory<T extends QueryMatch>