Class QueryTimesliceAggregationResult

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

public class QueryTimesliceAggregationResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
A timeslice interval segment.
  • Constructor Details

    • QueryTimesliceAggregationResult

      public QueryTimesliceAggregationResult()
  • Method Details

    • getKeyAsString

      public String getKeyAsString()
      Gets the keyAsString.

      String date value of the upper bound for the timeslice interval in ISO-8601 format.

      Returns:
      the keyAsString
    • getKey

      public Long getKey()
      Gets the key.

      Numeric date value of the upper bound for the timeslice interval in UNIX milliseconds since epoch.

      Returns:
      the key
    • getMatchingResults

      public Long getMatchingResults()
      Gets the matchingResults.

      Number of documents with the specified key as the upper bound.

      Returns:
      the matchingResults
    • getAggregations

      public List<QueryAggregation> getAggregations()
      Gets the aggregations.

      An array of sub aggregations.

      Returns:
      the aggregations