Class QueryCalculationAggregation
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v2.model.QueryAggregation
com.ibm.watson.discovery.v2.model.QueryCalculationAggregation
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class QueryCalculationAggregation extends QueryAggregation
Returns a scalar calculation across all documents for the field specified. Possible calculations
include min, max, sum, average, and unique_count.
-
Constructor Summary
Constructors Constructor Description QueryCalculationAggregation()
-
Method Summary
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
-
QueryCalculationAggregation
public QueryCalculationAggregation()
-
-
Method Details
-
getField
Gets the field.The field to perform the calculation on.
- Returns:
- the field
-
getValue
Gets the value.The value of the calculation.
- Returns:
- the value
-