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 Summary
Constructors Constructor Description AggregationResult()
-
Method Summary
Modifier and Type Method Description List<QueryAggregation>
getAggregations()
Gets the aggregations.String
getKey()
Gets the key.Long
getMatchingResults()
Gets the matchingResults.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
AggregationResult
public AggregationResult()
-
-
Method Details
-
getKey
Gets the key.Key that matched the aggregation type.
- Returns:
- the key
-
getMatchingResults
Gets the matchingResults.Number of matching results.
- Returns:
- the matchingResults
-
getAggregations
Gets the aggregations.Aggregations returned in the case of chained aggregations.
- Returns:
- the aggregations
-