Class LeafBucketCollector

  • All Implemented Interfaces:
    org.apache.lucene.search.LeafCollector
    Direct Known Subclasses:
    LeafBucketCollectorBase, ProfilingLeafBucketCollector

    public abstract class LeafBucketCollector
    extends java.lang.Object
    implements org.apache.lucene.search.LeafCollector
    Per-leaf bucket collector.
    • Constructor Detail

      • LeafBucketCollector

        public LeafBucketCollector()
    • Method Detail

      • collect

        public abstract void collect​(int doc,
                                     long bucket)
                              throws java.io.IOException
        Collect the given doc in the given bucket.
        Throws:
        java.io.IOException
      • collect

        public final void collect​(int doc)
                           throws java.io.IOException
        Specified by:
        collect in interface org.apache.lucene.search.LeafCollector
        Throws:
        java.io.IOException
      • setScorer

        public void setScorer​(org.apache.lucene.search.Scorer scorer)
                       throws java.io.IOException
        Specified by:
        setScorer in interface org.apache.lucene.search.LeafCollector
        Throws:
        java.io.IOException