Package org.elasticsearch.index.rankeval
Class EvalQueryQuality
- java.lang.Object
-
- org.elasticsearch.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.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.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.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description EvalQueryQuality(java.lang.String id, double metricScore)
EvalQueryQuality(StreamInput in)
-
Method Summary
Modifier and Type Method Description void
addHitsAndRatings(java.util.List<RatedSearchHit> hits)
boolean
equals(java.lang.Object obj)
static EvalQueryQuality
fromXContent(XContentParser parser, java.lang.String queryId)
java.util.List<RatedSearchHit>
getHitsAndRatings()
java.lang.String
getId()
MetricDetail
getMetricDetails()
int
hashCode()
double
metricScore()
void
setMetricDetails(MetricDetail breakdown)
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
void
writeTo(StreamOutput out)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.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:
toXContent
in 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:
equals
in classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-