Class AbstractRareTermsAggregator<T extends ValuesSource,​U extends IncludeExclude.Filter,​V>

    • Field Detail

      • maxDocCount

        protected final long maxDocCount
      • precision

        protected final double precision
      • valuesSource

        protected final T extends ValuesSource valuesSource
    • Method Detail

      • shouldDefer

        protected boolean shouldDefer​(Aggregator aggregator)
        Description copied from class: DeferableBucketAggregator
        This method should be overridden by subclasses that want to defer calculation of a child aggregation until a first pass is complete and a set of buckets has been pruned. Deferring collection will require the recording of all doc/bucketIds from the first pass and then the sub class should call DeferableBucketAggregator.runDeferredCollections(long...) for the selected set of buckets that survive the pruning.
        Overrides:
        shouldDefer in class DeferableBucketAggregator
        Parameters:
        aggregator - the child aggregator
        Returns:
        true if the aggregator should be deferred until a first pass at collection has completed
      • doCollect

        protected void doCollect​(V val,
                                 int docId)
                          throws java.io.IOException
        Throws:
        java.io.IOException