Class MetricsAggregator

All Implemented Interfaces:
, , org.apache.lucene.search.Collector, org.elasticsearch.core.Releasable
Direct Known Subclasses:
NumericMetricsAggregator

public abstract class MetricsAggregator extends AggregatorBase
  • Constructor Details

    • MetricsAggregator

      protected MetricsAggregator( name, AggregationContext context, Aggregator parent, <,​> metadata) throws
      Throws:
  • Method Details

    • buildAggregation

      public abstract InternalAggregation buildAggregation(long owningBucketOrd) throws
      Build an aggregation for data that has been collected into owningBucketOrd.
      Throws:
    • buildAggregations

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