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.FilterCollectorA 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.CollectorgetDelegate()Returns the delegate collectororg.apache.lucene.search.LeafCollectorgetLeafCollector(org.apache.lucene.index.LeafReaderContext context)intgetMatches()
-
-
-
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:
getLeafCollectorin interfaceorg.apache.lucene.search.Collector- Overrides:
getLeafCollectorin 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
-
-