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 Summary

      Modifier and Type Method Description
      void collect​(int doc, long bucket)
      Collect the given doc in the given bucket.
      void setScorer​(org.apache.lucene.search.Scorable s)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setScorer

        public void setScorer​(org.apache.lucene.search.Scorable 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