Package org.opensearch.index.rankeval
Class EvalQueryQuality
java.lang.Object
org.opensearch.index.rankeval.EvalQueryQuality
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
Result of the evaluation metric calculation on one particular query alone.
-
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHitsAndRatings(List<RatedSearchHit> hits) final booleanstatic EvalQueryQualityfromXContent(XContentParser parser, String queryId) getId()final inthashCode()doublevoidsetMetricDetails(MetricDetail breakdown) toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.common.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
EvalQueryQuality
-
EvalQueryQuality
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getId
-
metricScore
public double metricScore() -
setMetricDetails
-
getMetricDetails
-
addHitsAndRatings
-
getHitsAndRatings
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
fromXContent
public static EvalQueryQuality fromXContent(XContentParser parser, String queryId) throws IOException - Throws:
IOException
-
equals
-
hashCode
public final int hashCode()
-