Class QueryHistogramAggregation

All Implemented Interfaces:

public class QueryHistogramAggregation
extends QueryAggregation
Numeric interval segments to categorize documents by using field values from a single numeric field to describe the category.
  • Constructor Details

    • QueryHistogramAggregation

      public QueryHistogramAggregation()
  • Method Details

    • getField

      public String getField()
      Gets the field.

      The numeric field name used to create the histogram.

      the field
    • getInterval

      public Long getInterval()
      Gets the interval.

      The size of the sections the results are split into.

      the interval
    • getName

      public String getName()
      Gets the name.

      Identifier specified in the query request of this aggregation.

      the name
    • getResults

      public List<QueryHistogramAggregationResult> getResults()
      Gets the results.

      Array of numeric intervals.

      the results