Class ParsedTopMetrics
java.lang.Object
org.elasticsearch.search.aggregations.ParsedAggregation
org.elasticsearch.client.analytics.ParsedTopMetrics
- All Implemented Interfaces:
ToXContent
,ToXContentFragment
,Aggregation
public class ParsedTopMetrics extends ParsedAggregation
Results of the
top_metrics
aggregation.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ParsedTopMetrics.TopMetrics
The metrics belonging to the document with the "top" sort key.Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFields
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Field Summary
Fields Modifier and Type Field Description static ConstructingObjectParser<ParsedTopMetrics,java.lang.String>
PARSER
Fields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER
-
Method Summary
Modifier and Type Method Description protected XContentBuilder
doXContentBody(XContentBuilder builder, ToXContent.Params params)
java.util.List<ParsedTopMetrics.TopMetrics>
getTopMetrics()
The list of top metrics, in sorted order.java.lang.String
getType()
Methods inherited from class org.elasticsearch.search.aggregations.ParsedAggregation
declareAggregationFields, getMetadata, getName, parseDouble, setName, toXContent
-
Field Details
-
Method Details
-
getTopMetrics
The list of top metrics, in sorted order. -
getType
public java.lang.String getType() -
doXContentBody
protected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
doXContentBody
in classParsedAggregation
- Throws:
java.io.IOException
-