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 Details

    • QueryCalculationAggregation

      public QueryCalculationAggregation()
  • Method Details

    • getField

      public String getField()
      Gets the field.

      The field to perform the calculation on.

      Returns:
      the field
    • getValue

      public Double getValue()
      Gets the value.

      The value of the calculation.

      Returns:
      the value