Package org.opensearch.index.rankeval
Interface MetricDetail
- All Superinterfaces:
NamedWriteable,ToXContent,ToXContentObject,Writeable
- All Known Implementing Classes:
DiscountedCumulativeGain.Detail,ExpectedReciprocalRank.Detail,MeanReciprocalRank.Detail,PrecisionAtK.Detail,RecallAtK.Detail
Details about a specific
EvaluationMetric that should be included in the response.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.common.io.stream.Writeable
Writeable.Reader<V extends Object>, Writeable.Writer<V extends Object> -
Field Summary
Fields inherited from interface org.opensearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptiondefault StringinnerToXContent(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.opensearch.common.io.stream.NamedWriteable
getWriteableNameMethods inherited from interface org.opensearch.common.xcontent.ToXContentObject
isFragment
-
Method Details
-
toXContent
default XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
getMetricName
-
innerToXContent
XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException Implementations should write their own fields to theXContentBuilderpassed in.- Throws:
IOException
-