Class 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 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 interface org.apache.lucene.search.Collector
        Overrides:
        getLeafCollector in class org.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