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 classParsedTopMetrics.TopMetricsThe metrics belonging to the document with the "top" sort key.Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFieldsNested 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>PARSERFields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER -
Method Summary
Modifier and Type Method Description protected XContentBuilderdoXContentBody(XContentBuilder builder, ToXContent.Params params)java.util.List<ParsedTopMetrics.TopMetrics>getTopMetrics()The list of top metrics, in sorted order.java.lang.StringgetType()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:
doXContentBodyin classParsedAggregation- Throws:
java.io.IOException
-