Class 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.Params
      • Nested 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)  
    • Constructor Detail

      • 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 Detail

      • writeTo

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

        public java.lang.String getId()
      • metricScore

        public double metricScore()
      • setMetricDetails

        public void setMetricDetails​(MetricDetail breakdown)
      • addHitsAndRatings

        public void addHitsAndRatings​(java.util.List<RatedSearchHit> hits)
      • getHitsAndRatings

        public java.util.List<RatedSearchHit> 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:
        toXContent in interface org.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:
        equals in class java.lang.Object
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object