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 Summary
Constructors Constructor Description QueryNestedAggregation()
-
Method Summary
Modifier and Type Method Description List<QueryAggregation>
getAggregations()
Gets the aggregations.Long
getMatchingResults()
Gets the matchingResults.String
getPath()
Gets the path.Methods inherited from class com.ibm.watson.discovery.v2.model.QueryAggregation
getType
Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
QueryNestedAggregation
public QueryNestedAggregation()
-
-
Method Details
-
getPath
Gets the path.The path to the document field to scope sub aggregations to.
- Returns:
- the path
-
getMatchingResults
Gets the matchingResults.Number of nested documents found in the specified field.
- Returns:
- the matchingResults
-
getAggregations
Gets the aggregations.An array of sub aggregations.
- Returns:
- the aggregations
-