Class QueryAggregation

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v2.model.QueryAggregation
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
Direct Known Subclasses:
GenericQueryAggregation, QueryCalculationAggregation, QueryFilterAggregation, QueryGroupByAggregation, QueryHistogramAggregation, QueryNestedAggregation, QueryTermAggregation, QueryTimesliceAggregation, QueryTopHitsAggregation

public class QueryAggregation
extends com.ibm.cloud.sdk.core.service.model.GenericModel
An abstract aggregation type produced by Discovery to analyze the input provided.
  • Constructor Summary

    Constructors
    Constructor Description
    QueryAggregation()  
  • Method Summary

    Modifier and Type Method Description
    String getType()
    Gets the type.

    Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel

    equals, hashCode, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • QueryAggregation

      public QueryAggregation()
  • Method Details

    • getType

      public String getType()
      Gets the type.

      The type of aggregation command used. Options include: term, histogram, timeslice, nested, filter, min, max, sum, average, unique_count, and top_hits.

      Returns:
      the type