Class QueryTermAggregation
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v2.model.QueryAggregation
com.ibm.watson.discovery.v2.model.QueryTermAggregation
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class QueryTermAggregation extends QueryAggregation
Returns the top values for the field specified.
-
Constructor Summary
Constructors Constructor Description QueryTermAggregation()
-
Method Summary
Modifier and Type Method Description Long
getCount()
Gets the count.String
getField()
Gets the field.String
getName()
Gets the name.List<QueryTermAggregationResult>
getResults()
Gets the results.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
-
QueryTermAggregation
public QueryTermAggregation()
-
-
Method Details
-
getField
Gets the field.The field in the document used to generate top values from.
- Returns:
- the field
-
getCount
Gets the count.The number of top values returned.
- Returns:
- the count
-
getName
Gets the name.Identifier specified in the query request of this aggregation.
- Returns:
- the name
-
getResults
Gets the results.Array of top values for the field.
- Returns:
- the results
-