Class LongRareTermsAggregator

All Implemented Interfaces:, java.lang.AutoCloseable,, Releasable

public class LongRareTermsAggregator
extends AbstractRareTermsAggregator
An aggregator that finds "rare" string values (e.g. terms agg that orders ascending)
  • Method Details

    • getValues

      protected org.apache.lucene.index.SortedNumericDocValues getValues​(ValuesSource.Numeric valuesSource, org.apache.lucene.index.LeafReaderContext ctx) throws
    • getLeafCollector

      public LeafBucketCollector getLeafCollector​(org.apache.lucene.index.LeafReaderContext ctx, LeafBucketCollector sub) throws
      Description copied from class: AggregatorBase
      Get a LeafBucketCollector for the given ctx, which should delegate to the given collector.
      Specified by:
      getLeafCollector in class AggregatorBase
    • buildAggregations

      public InternalAggregation[] buildAggregations​(long[] owningBucketOrds) throws
      Description copied from class: Aggregator
      Build the results of this aggregation.
      Specified by:
      buildAggregations in class Aggregator
      owningBucketOrds - the ordinals of the buckets that we want to collect from this aggregation
      the results for each ordinal, in the same order as the array of ordinals
    • buildEmptyAggregation

      public InternalAggregation buildEmptyAggregation()
      Description copied from class: Aggregator
      Build an empty aggregation.
      Specified by:
      buildEmptyAggregation in class Aggregator
    • doClose

      public void doClose()
      Description copied from class: AggregatorBase
      Release instance-specific data.
      doClose in class AggregatorBase