Class FilterCollector
- java.lang.Object
-
- org.apache.lucene.search.FilterCollector
-
- org.apache.solr.search.grouping.collector.FilterCollector
-
- All Implemented Interfaces:
org.apache.lucene.search.Collector
public class FilterCollector extends org.apache.lucene.search.FilterCollector
A collector that filters incoming doc ids that are not in the filter.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description FilterCollector(DocSet filter, org.apache.lucene.search.Collector delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.search.Collector
getDelegate()
Returns the delegate collectororg.apache.lucene.search.LeafCollector
getLeafCollector(org.apache.lucene.index.LeafReaderContext context)
int
getMatches()
-
-
-
Constructor Detail
-
FilterCollector
public FilterCollector(DocSet filter, org.apache.lucene.search.Collector delegate)
-
-
Method Detail
-
getLeafCollector
public org.apache.lucene.search.LeafCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext context) throws IOException
- Specified by:
getLeafCollector
in interfaceorg.apache.lucene.search.Collector
- Overrides:
getLeafCollector
in classorg.apache.lucene.search.FilterCollector
- Throws:
IOException
-
getMatches
public int getMatches()
-
getDelegate
public org.apache.lucene.search.Collector getDelegate()
Returns the delegate collector- Returns:
- the delegate collector
-
-