public class QueryAggregation
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected java.util.List<QueryAggregation> |
aggregations |
protected static java.util.Map<java.lang.String,java.lang.Class<?>> |
discriminatorMapping |
protected static java.lang.String |
discriminatorPropertyName |
protected java.lang.Long |
matchingResults |
protected java.util.List<AggregationResult> |
results |
protected java.lang.String |
type |
Constructor and Description |
---|
QueryAggregation() |
Modifier and Type | Method and Description |
---|---|
java.util.List<QueryAggregation> |
getAggregations()
Gets the aggregations.
|
java.lang.Long |
getMatchingResults()
Gets the matchingResults.
|
java.util.List<AggregationResult> |
getResults()
Gets the results.
|
java.lang.String |
getType()
Gets the type.
|
protected static java.lang.String discriminatorPropertyName
protected static java.util.Map<java.lang.String,java.lang.Class<?>> discriminatorMapping
protected java.lang.String type
protected java.util.List<AggregationResult> results
@SerializedName(value="matching_results") protected java.lang.Long matchingResults
protected java.util.List<QueryAggregation> aggregations
public java.lang.String getType()
The type of aggregation command used. For example: term, filter, max, min, etc.
public java.util.List<AggregationResult> getResults()
Array of aggregation results.
public java.lang.Long getMatchingResults()
Number of matching results.
public java.util.List<QueryAggregation> getAggregations()
Aggregations returned by Discovery.