Package org.elasticsearch.index.rankeval
Class EvalQueryQuality
java.lang.Object
org.elasticsearch.index.rankeval.EvalQueryQuality
- All Implemented Interfaces:
org.elasticsearch.common.io.stream.Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment
public class EvalQueryQuality
extends java.lang.Object
implements org.elasticsearch.common.xcontent.ToXContentFragment, org.elasticsearch.common.io.stream.Writeable
Result of the evaluation metric calculation on one particular query alone.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
org.elasticsearch.common.io.stream.Writeable.Reader<V extends java.lang.Object>, org.elasticsearch.common.io.stream.Writeable.Writer<V extends java.lang.Object> -
Field Summary
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors Constructor Description EvalQueryQuality(java.lang.String id, double metricScore)EvalQueryQuality(org.elasticsearch.common.io.stream.StreamInput in) -
Method Summary
Modifier and Type Method Description voidaddHitsAndRatings(java.util.List<RatedSearchHit> hits)booleanequals(java.lang.Object obj)static EvalQueryQualityfromXContent(org.elasticsearch.common.xcontent.XContentParser parser, java.lang.String queryId)java.util.List<RatedSearchHit>getHitsAndRatings()java.lang.StringgetId()MetricDetailgetMetricDetails()inthashCode()doublemetricScore()voidsetMetricDetails(MetricDetail breakdown)org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)voidwriteTo(org.elasticsearch.common.io.stream.StreamOutput out)Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
EvalQueryQuality
public EvalQueryQuality(java.lang.String id, double metricScore) -
EvalQueryQuality
public EvalQueryQuality(org.elasticsearch.common.io.stream.StreamInput in) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Details
-
writeTo
public void writeTo(org.elasticsearch.common.io.stream.StreamOutput out) throws java.io.IOException- Specified by:
writeToin interfaceorg.elasticsearch.common.io.stream.Writeable- Throws:
java.io.IOException
-
getId
public java.lang.String getId() -
metricScore
public double metricScore() -
setMetricDetails
-
getMetricDetails
-
addHitsAndRatings
-
getHitsAndRatings
-
toXContent
public 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:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-
fromXContent
public static EvalQueryQuality fromXContent(org.elasticsearch.common.xcontent.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
-