Class ParsedTopMetrics
java.lang.Object
org.elasticsearch.search.aggregations.ParsedAggregation
org.elasticsearch.client.analytics.ParsedTopMetrics
- All Implemented Interfaces:
Aggregation,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentFragment
Results of the
top_metrics aggregation.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe 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.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ConstructingObjectParser<ParsedTopMetrics,String> Fields inherited from class org.elasticsearch.search.aggregations.ParsedAggregation
metadataFields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITERFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptionprotected org.elasticsearch.xcontent.XContentBuilderdoXContentBody(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) The list of top metrics, in sorted order.getType()Methods inherited from class org.elasticsearch.search.aggregations.ParsedAggregation
declareAggregationFields, getMetadata, getName, parseDouble, setName, toXContentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<ParsedTopMetrics,String> PARSER
-
-
Method Details
-
getTopMetrics
The list of top metrics, in sorted order. -
getType
-
doXContentBody
protected org.elasticsearch.xcontent.XContentBuilder doXContentBody(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
doXContentBodyin classParsedAggregation- Throws:
IOException
-