Package org.opensearch.index.rankeval
Class EvalQueryQuality
- java.lang.Object
-
- org.opensearch.index.rankeval.EvalQueryQuality
-
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
public class EvalQueryQuality extends java.lang.Object implements ToXContentFragment, Writeable
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.Params
-
Nested classes/interfaces inherited from interface org.opensearch.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.opensearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description EvalQueryQuality(java.lang.String id, double metricScore)EvalQueryQuality(StreamInput in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHitsAndRatings(java.util.List<RatedSearchHit> hits)booleanequals(java.lang.Object obj)static EvalQueryQualityfromXContent(XContentParser parser, java.lang.String queryId)java.util.List<RatedSearchHit>getHitsAndRatings()java.lang.StringgetId()MetricDetailgetMetricDetails()inthashCode()doublemetricScore()voidsetMetricDetails(MetricDetail breakdown)XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Constructor Detail
-
EvalQueryQuality
public EvalQueryQuality(java.lang.String id, double metricScore)
-
EvalQueryQuality
public EvalQueryQuality(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
-
getId
public java.lang.String getId()
-
metricScore
public double metricScore()
-
setMetricDetails
public void setMetricDetails(MetricDetail breakdown)
-
getMetricDetails
public MetricDetail getMetricDetails()
-
addHitsAndRatings
public void addHitsAndRatings(java.util.List<RatedSearchHit> hits)
-
getHitsAndRatings
public java.util.List<RatedSearchHit> getHitsAndRatings()
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
fromXContent
public static EvalQueryQuality fromXContent(XContentParser parser, java.lang.String queryId) throws java.io.IOException
- Throws:
java.io.IOException
-
equals
public final boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-