Class NumericMetricsAggregator.MultiValue

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

public abstract static class NumericMetricsAggregator.MultiValue
extends NumericMetricsAggregator
  • Constructor Details

    • MultiValue

      protected MultiValue​(java.lang.String name, AggregationContext context, Aggregator parent, java.util.Map<java.lang.String,​java.lang.Object> metadata) throws
  • Method Details

    • hasMetric

      public abstract boolean hasMetric​(java.lang.String name)
    • metric

      public abstract double metric​(java.lang.String name, long owningBucketOrd)
    • bucketComparator

      public Aggregator.BucketComparator bucketComparator​(java.lang.String key, SortOrder order)
      Description copied from class: Aggregator
      Builds a comparator that compares two buckets aggregated by this Aggregator.

      The default implementation throws an exception but we override it on aggregations that support sorting.

      bucketComparator in class Aggregator