Class Calculation

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v1.model.QueryAggregation
com.ibm.watson.discovery.v1.model.Calculation
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class Calculation
extends QueryAggregation
Calculation.
  • Constructor Details

    • Calculation

      public Calculation()
  • Method Details

    • getField

      public String getField()
      Gets the field.

      The field where the aggregation is located in the document.

      Returns:
      the field
    • getValue

      public Double getValue()
      Gets the value.

      Value of the aggregation.

      Returns:
      the value