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.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentFragment
public class EvalQueryQuality
extends Object
implements org.elasticsearch.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.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionEvalQueryQuality(String id, double metricScore) EvalQueryQuality(org.elasticsearch.common.io.stream.StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHitsAndRatings(List<RatedSearchHit> hits) final booleanstatic EvalQueryQualityfromXContent(org.elasticsearch.xcontent.XContentParser parser, String queryId) getId()final inthashCode()doublevoidsetMetricDetails(MetricDetail breakdown) org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.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.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
EvalQueryQuality
-
EvalQueryQuality
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceorg.elasticsearch.common.io.stream.Writeable- Throws:
IOException
-
getId
-
metricScore
public double metricScore() -
setMetricDetails
-
getMetricDetails
-
addHitsAndRatings
-
getHitsAndRatings
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
fromXContent
public static EvalQueryQuality fromXContent(org.elasticsearch.xcontent.XContentParser parser, String queryId) throws IOException - Throws:
IOException
-
equals
-
hashCode
public final int hashCode()
-