Class SingleValueMetricAggregate

  • All Implemented Interfaces:
    Aggregate<BucketTerm>

    public class SingleValueMetricAggregate
    extends AggregateEsBase<org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregation.SingleValue,​BucketTerm>
    An aggregate that returns a single value.
    Since:
    10.3
    • Field Detail

      • aggregationBuilder

        protected final org.elasticsearch.search.aggregations.AggregationBuilder aggregationBuilder
      • value

        protected Double value
    • Method Detail

      • toBuilder

        public org.elasticsearch.search.aggregations.AggregationBuilder toBuilder​(String type)
        Creates an AggregationBuilder for the supplied type
      • getEsAggregate

        public org.elasticsearch.search.aggregations.AggregationBuilder getEsAggregate()
        Description copied from class: AggregateEsBase
        Return the Elasticsearch aggregate builder
        Specified by:
        getEsAggregate in class AggregateEsBase<org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregation.SingleValue,​BucketTerm>
      • getEsFilter

        public org.elasticsearch.index.query.QueryBuilder getEsFilter()
        Description copied from class: AggregateEsBase
        Return the Elasticsearch aggregate filter corresponding to the selection
        Specified by:
        getEsFilter in class AggregateEsBase<org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregation.SingleValue,​BucketTerm>
      • parseAggregation

        public void parseAggregation​(org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregation.SingleValue aggregation)
        Description copied from class: AggregateEsBase
        Extract the aggregation from the Elasticsearch response
        Specified by:
        parseAggregation in class AggregateEsBase<org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregation.SingleValue,​BucketTerm>
      • getValue

        public Double getValue()