Package org.opensearch.index.rankeval
Interface MetricDetail
- All Superinterfaces:
NamedWriteable,org.opensearch.core.xcontent.ToXContent,org.opensearch.core.xcontent.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.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.common.io.stream.Writeable
Writeable.Reader<V extends Object>, Writeable.WriteableRegistry, Writeable.Writer<V extends Object> -
Field Summary
Fields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptiondefault Stringorg.opensearch.core.xcontent.XContentBuilderinnerToXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) Implementations should write their own fields to theXContentBuilderpassed in.default org.opensearch.core.xcontent.XContentBuildertoXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) Methods inherited from interface org.opensearch.common.io.stream.NamedWriteable
getWriteableNameMethods inherited from interface org.opensearch.core.xcontent.ToXContentObject
isFragment
-
Method Details
-
toXContent
default org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.opensearch.core.xcontent.ToXContent- Throws:
IOException
-
getMetricName
-
innerToXContent
org.opensearch.core.xcontent.XContentBuilder innerToXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException Implementations should write their own fields to theXContentBuilderpassed in.- Throws:
IOException
-