Class QueryAggregation

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v1.model.QueryAggregation
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
Direct Known Subclasses:
Calculation, Filter, GenericQueryAggregation, Histogram, Nested, Term, Timeslice, TopHits

public class QueryAggregation
extends com.ibm.cloud.sdk.core.service.model.GenericModel
An aggregation produced by Discovery to analyze the input provided.
  • Constructor Details

    • QueryAggregation

      public QueryAggregation()
  • Method Details

    • getType

      public String getType()
      Gets the type.

      The type of aggregation command used. For example: term, filter, max, min, etc.

      Returns:
      the type
    • getResults

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

      Array of aggregation results.

      Returns:
      the results
    • getMatchingResults

      public Long getMatchingResults()
      Gets the matchingResults.

      Number of matching results.

      Returns:
      the matchingResults
    • getAggregations

      public List<QueryAggregation> getAggregations()
      Gets the aggregations.

      Aggregations returned by Discovery.

      Returns:
      the aggregations