Class LeafBucketCollectorBase

  • All Implemented Interfaces:
    org.apache.lucene.search.LeafCollector

    public class LeafBucketCollectorBase
    extends LeafBucketCollector
    A LeafBucketCollector that delegates all calls to the sub leaf aggregator and sets the scorer on its source of values if it implements ScorerAware.
    • Method Detail

      • setScorer

        public void setScorer​(org.apache.lucene.search.Scorer s)
                       throws java.io.IOException
        Specified by:
        setScorer in interface org.apache.lucene.search.LeafCollector
        Overrides:
        setScorer in class LeafBucketCollector
        Throws:
        java.io.IOException
      • collect

        public void collect​(int doc,
                            long bucket)
                     throws java.io.IOException
        Description copied from class: LeafBucketCollector
        Collect the given doc in the given bucket.
        Specified by:
        collect in class LeafBucketCollector
        Throws:
        java.io.IOException