Class TopHits
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v1.model.QueryAggregation
com.ibm.watson.discovery.v1.model.TopHits
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class TopHits extends QueryAggregation
TopHits.
-
Constructor Summary
Constructors Constructor Description TopHits()
-
Method Summary
Modifier and Type Method Description TopHitsResults
getHits()
Gets the hits.Long
getSize()
Gets the size.Methods inherited from class com.ibm.watson.discovery.v1.model.QueryAggregation
getAggregations, getMatchingResults, getResults, getType
Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
TopHits
public TopHits()
-
-
Method Details
-
getSize
Gets the size.Number of top hits returned by the aggregation.
- Returns:
- the size
-
getHits
Gets the hits.- Returns:
- the hits
-