Package org.elasticsearch.index.rankeval
Interface MetricDetail
-
- All Superinterfaces:
org.elasticsearch.common.io.stream.NamedWriteable
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentObject
,org.elasticsearch.common.io.stream.Writeable
- All Known Implementing Classes:
DiscountedCumulativeGain.Detail
,ExpectedReciprocalRank.Detail
,MeanReciprocalRank.Detail
,PrecisionAtK.Detail
public interface MetricDetail extends org.elasticsearch.common.xcontent.ToXContentObject, org.elasticsearch.common.io.stream.NamedWriteable
Details about a specificEvaluationMetric
that should be included in the resonse.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.String
getMetricName()
org.elasticsearch.common.xcontent.XContentBuilder
innerToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
Implementations should write their own fields to theXContentBuilder
passed in.default org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
-
-
-
Method Detail
-
toXContent
default org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
java.io.IOException
-
getMetricName
default java.lang.String getMetricName()
-
innerToXContent
org.elasticsearch.common.xcontent.XContentBuilder innerToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
Implementations should write their own fields to theXContentBuilder
passed in.- Throws:
java.io.IOException
-
-