Class ParsedTopMetrics
java.lang.Object
org.elasticsearch.search.aggregations.ParsedAggregation
org.elasticsearch.client.analytics.ParsedTopMetrics
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentFragment
,org.elasticsearch.search.aggregations.Aggregation
public class ParsedTopMetrics
extends org.elasticsearch.search.aggregations.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. -
Field Summary
Fields Modifier and Type Field Description static org.elasticsearch.common.xcontent.ConstructingObjectParser<ParsedTopMetrics,java.lang.String>
PARSER
-
Method Summary
Modifier and Type Method Description protected org.elasticsearch.common.xcontent.XContentBuilder
doXContentBody(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.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
-
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<ParsedTopMetrics,java.lang.String> PARSER
-
-
Method Details
-
getTopMetrics
The list of top metrics, in sorted order. -
getType
public java.lang.String getType() -
doXContentBody
protected org.elasticsearch.common.xcontent.XContentBuilder doXContentBody(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
doXContentBody
in classorg.elasticsearch.search.aggregations.ParsedAggregation
- Throws:
java.io.IOException
-