Class QueryHistogramAggregation

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v2.model.QueryAggregation
com.ibm.watson.discovery.v2.model.QueryHistogramAggregation
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

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.

      Returns:
      the field
    • getInterval

      public Long getInterval()
      Gets the interval.

      The size of the sections that the results are split into.

      Returns:
      the interval
    • getName

      public String getName()
      Gets the name.

      Identifier specified in the query request of this aggregation.

      Returns:
      the name
    • getResults

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

      Array of numeric intervals.

      Returns:
      the results