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

    Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable

    org.elasticsearch.common.io.stream.Writeable.Reader<V extends Object>, org.elasticsearch.common.io.stream.Writeable.Writer<V extends Object>
  • Field Summary

    Fields inherited from interface org.elasticsearch.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Constructor
    Description
    EvalQueryQuality(String id, double metricScore)
     
    EvalQueryQuality(org.elasticsearch.common.io.stream.StreamInput in)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    final boolean
     
    fromXContent(org.elasticsearch.xcontent.XContentParser parser, String queryId)
     
     
     
     
    final int
     
    double
     
    void
     
    org.elasticsearch.xcontent.XContentBuilder
    toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)
     
    void
    writeTo(org.elasticsearch.common.io.stream.StreamOutput out)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment

    isFragment
  • Constructor Details

    • EvalQueryQuality

      public EvalQueryQuality(String id, double metricScore)
    • EvalQueryQuality

      public EvalQueryQuality(org.elasticsearch.common.io.stream.StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details

    • writeTo

      public void writeTo(org.elasticsearch.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      writeTo in interface org.elasticsearch.common.io.stream.Writeable
      Throws:
      IOException
    • getId

      public String getId()
    • metricScore

      public double metricScore()
    • setMetricDetails

      public void setMetricDetails(MetricDetail breakdown)
    • getMetricDetails

      public MetricDetail getMetricDetails()
    • addHitsAndRatings

      public void addHitsAndRatings(List<RatedSearchHit> hits)
    • getHitsAndRatings

      public List<RatedSearchHit> getHitsAndRatings()
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • fromXContent

      public static EvalQueryQuality fromXContent(org.elasticsearch.xcontent.XContentParser parser, String queryId) throws IOException
      Throws:
      IOException
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object