Module org.apache.lucene.monitor
Package org.apache.lucene.monitor
Class PartitionMatcher.PartitionMatcherFactory<T extends QueryMatch>
- java.lang.Object
-
- org.apache.lucene.monitor.PartitionMatcher.PartitionMatcherFactory<T>
-
- All Implemented Interfaces:
MatcherFactory<T>
- Enclosing class:
- PartitionMatcher<T extends QueryMatch>
private static class PartitionMatcher.PartitionMatcherFactory<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 PartitionMatcherFactory(java.util.concurrent.ExecutorService executor, MatcherFactory<T> matcherFactory, int threads)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PartitionMatcher<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
-
PartitionMatcherFactory
PartitionMatcherFactory(java.util.concurrent.ExecutorService executor, MatcherFactory<T> matcherFactory, int threads)
-
-
Method Detail
-
createMatcher
public PartitionMatcher<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>
-
-