Class QueryNestedAggregation

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

public class QueryNestedAggregation
extends QueryAggregation
A restriction that alter the document set used for sub aggregations it precedes to nested documents found in the field specified.
  • Constructor Details

    • QueryNestedAggregation

      public QueryNestedAggregation()
  • Method Details

    • getPath

      public String getPath()
      Gets the path.

      The path to the document field to scope sub aggregations to.

      Returns:
      the path
    • getMatchingResults

      public Long getMatchingResults()
      Gets the matchingResults.

      Number of nested documents found in the specified field.

      Returns:
      the matchingResults
    • getAggregations

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

      An array of sub aggregations.

      Returns:
      the aggregations