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 java.lang.Object implements MatcherFactory<T>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.ExecutorService
executor
private MatcherFactory<T>
matcherFactory
private int
threads
-
Constructor Summary
Constructors Constructor Description ParallelMatcherFactory(java.util.concurrent.ExecutorService executor, MatcherFactory<T> matcherFactory, int threads)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParallelMatcher<T>
createMatcher(IndexSearcher searcher)
Create a newCandidateMatcher
object, to select queries to match against the passed-in IndexSearcher
-
-
-
Field Detail
-
executor
private final java.util.concurrent.ExecutorService executor
-
matcherFactory
private final MatcherFactory<T extends QueryMatch> matcherFactory
-
threads
private final int threads
-
-
Constructor Detail
-
ParallelMatcherFactory
ParallelMatcherFactory(java.util.concurrent.ExecutorService executor, MatcherFactory<T> matcherFactory, int threads)
-
-
Method Detail
-
createMatcher
public ParallelMatcher<T> createMatcher(IndexSearcher searcher)
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>
-
-