Class AggregationResult

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v1.model.AggregationResult
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class AggregationResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Aggregation results for the specified query.
  • Constructor Details

    • AggregationResult

      public AggregationResult()
  • Method Details

    • getKey

      public String getKey()
      Gets the key.

      Key that matched the aggregation type.

      Returns:
      the key
    • getMatchingResults

      public Long getMatchingResults()
      Gets the matchingResults.

      Number of matching results.

      Returns:
      the matchingResults
    • getAggregations

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

      Aggregations returned in the case of chained aggregations.

      Returns:
      the aggregations