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 Summary
Constructors Constructor Description QueryAggregation() -
Method Summary
Modifier and Type Method Description List<QueryAggregation>getAggregations()Gets the aggregations.LonggetMatchingResults()Gets the matchingResults.List<AggregationResult>getResults()Gets the results.StringgetType()Gets the type.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
QueryAggregation
public QueryAggregation()
-
-
Method Details
-
getType
Gets the type.The type of aggregation command used. For example: term, filter, max, min, etc.
- Returns:
- the type
-
getResults
Gets the results.Array of aggregation results.
- Returns:
- the results
-
getMatchingResults
Gets the matchingResults.Number of matching results.
- Returns:
- the matchingResults
-
getAggregations
Gets the aggregations.Aggregations returned by Discovery.
- Returns:
- the aggregations
-