Class QueryTimesliceAggregation

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

public class QueryTimesliceAggregation
extends QueryAggregation
A specialized histogram aggregation that uses dates to create interval segments.
  • Constructor Details

    • QueryTimesliceAggregation

      public QueryTimesliceAggregation()
  • Method Details

    • getField

      public String getField()
      Gets the field.

      The date field name used to create the timeslice.

      Returns:
      the field
    • getInterval

      public String getInterval()
      Gets the interval.

      The date interval value. Valid values are seconds, minutes, hours, days, weeks, and years.

      Returns:
      the interval
    • getName

      public String getName()
      Gets the name.

      Identifier specified in the query request of this aggregation.

      Returns:
      the name
    • getResults

      public List<QueryTimesliceAggregationResult> getResults()
      Gets the results.

      Array of aggregation results.

      Returns:
      the results