Class AbstractRareTermsAggregator

All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.lucene.search.Collector, org.elasticsearch.core.Releasable
Direct Known Subclasses:
LongRareTermsAggregator, StringRareTermsAggregator

public abstract class AbstractRareTermsAggregator extends DeferableBucketAggregator
  • Field Details

    • maxDocCount

      protected final long maxDocCount
    • format

      protected final DocValueFormat format
  • Method Details

    • newFilter

      protected SetBackedScalingCuckooFilter newFilter()
    • 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.
      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