Class QueryHistogramAggregation
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v2.model.QueryAggregation
com.ibm.watson.discovery.v2.model.QueryHistogramAggregation
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class QueryHistogramAggregation extends QueryAggregation
Numeric interval segments to categorize documents by using field values from a single numeric
field to describe the category.
-
Constructor Summary
Constructors Constructor Description QueryHistogramAggregation()
-
Method Summary
Modifier and Type Method Description String
getField()
Gets the field.Long
getInterval()
Gets the interval.String
getName()
Gets the name.List<QueryHistogramAggregationResult>
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
-
QueryHistogramAggregation
public QueryHistogramAggregation()
-
-
Method Details
-
getField
Gets the field.The numeric field name used to create the histogram.
- Returns:
- the field
-
getInterval
Gets the interval.The size of the sections that the results are split into.
- 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 numeric intervals.
- Returns:
- the results
-