Module org.apache.lucene.monitor
Package org.apache.lucene.monitor
Class ParallelMatcher.ParallelMatcherFactory<T extends QueryMatch>
java.lang.Object
org.apache.lucene.monitor.ParallelMatcher.ParallelMatcherFactory<T>
- All Implemented Interfaces:
MatcherFactory<T>
- Enclosing class:
- ParallelMatcher<T extends QueryMatch>
private static class ParallelMatcher.ParallelMatcherFactory<T extends QueryMatch>
extends Object
implements MatcherFactory<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ExecutorService
private final MatcherFactory<T>
private final int
-
Constructor Summary
ConstructorsConstructorDescriptionParallelMatcherFactory
(ExecutorService executor, MatcherFactory<T> matcherFactory, int threads) -
Method Summary
Modifier and TypeMethodDescriptioncreateMatcher
(IndexSearcher searcher) Create a newCandidateMatcher
object, to select queries to match against the passed-in IndexSearcher
-
Field Details
-
executor
-
matcherFactory
-
threads
private final int threads
-
-
Constructor Details
-
ParallelMatcherFactory
ParallelMatcherFactory(ExecutorService executor, MatcherFactory<T> matcherFactory, int threads)
-
-
Method Details
-
createMatcher
Description copied from interface:MatcherFactory
Create a newCandidateMatcher
object, to select queries to match against the passed-in IndexSearcher- Specified by:
createMatcher
in interfaceMatcherFactory<T extends QueryMatch>
-