Class ParsedTopMetrics.TopMetrics
java.lang.Object
org.elasticsearch.client.analytics.ParsedTopMetrics.TopMetrics
- All Implemented Interfaces:
ToXContent
- Enclosing class:
- ParsedTopMetrics
public static class ParsedTopMetrics.TopMetrics extends java.lang.Object implements ToXContent
The metrics belonging to the document with the "top" sort key.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Field Summary
-
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
getMetrics()
The top metric values returned by the aggregation.java.util.List<java.lang.Object>
getSort()
The sort key for these top metrics.XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
-
Method Details
-
getSort
public java.util.List<java.lang.Object> getSort()The sort key for these top metrics. -
getMetrics
public java.util.Map<java.lang.String,java.lang.Object> getMetrics()The top metric values returned by the aggregation. -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-