Package org.elasticsearch.index.rankeval
Interface MetricDetail
-
- All Superinterfaces:
NamedWriteable,ToXContent,ToXContentObject,Writeable
- All Known Implementing Classes:
DiscountedCumulativeGain.Detail,ExpectedReciprocalRank.Detail,MeanReciprocalRank.Detail,PrecisionAtK.Detail
public interface MetricDetail extends ToXContentObject, NamedWriteable
Details about a specificEvaluationMetricthat should be included in the resonse.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V extends java.lang.Object>, Writeable.Writer<V extends java.lang.Object>
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
Modifier and Type Method Description default java.lang.StringgetMetricName()XContentBuilderinnerToXContent(XContentBuilder builder, ToXContent.Params params)Implementations should write their own fields to theXContentBuilderpassed in.default XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)-
Methods inherited from interface org.elasticsearch.common.io.stream.NamedWriteable
getWriteableName
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Method Detail
-
toXContent
default XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
getMetricName
default java.lang.String getMetricName()
-
innerToXContent
XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
Implementations should write their own fields to theXContentBuilderpassed in.- Throws:
java.io.IOException
-
-