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 Summary
Constructors Constructor Description QueryTimesliceAggregation()
-
Method Summary
Modifier and Type Method Description String
getField()
Gets the field.String
getInterval()
Gets the interval.String
getName()
Gets the name.List<QueryTimesliceAggregationResult>
getResults()
Gets the results.Methods inherited from class com.ibm.watson.discovery.v2.model.QueryAggregation
getType
Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
QueryTimesliceAggregation
public QueryTimesliceAggregation()
-
-
Method Details
-
getField
Gets the field.The date field name used to create the timeslice.
- Returns:
- the field
-
getInterval
Gets the interval.The date interval value. Valid values are seconds, minutes, hours, days, weeks, and years.
- Returns:
- the interval
-
getName
Gets the name.Identifier specified in the query request of this aggregation.
- Returns:
- the name
-
getResults
Gets the results.Array of aggregation results.
- Returns:
- the results
-