Class MeanReciprocalRank.Detail

  • All Implemented Interfaces:
    org.elasticsearch.common.io.stream.NamedWriteable, org.elasticsearch.common.io.stream.Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject, MetricDetail
    Enclosing class:
    MeanReciprocalRank

    public static final class MeanReciprocalRank.Detail
    extends java.lang.Object
    implements MetricDetail
    • 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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      static MeanReciprocalRank.Detail fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser)  
      int getFirstRelevantRank()
      the ranking of the first relevant document, or -1 if no relevant document was found
      java.lang.String getMetricName()  
      java.lang.String getWriteableName()  
      int hashCode()  
      org.elasticsearch.common.xcontent.XContentBuilder innerToXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
      Implementations should write their own fields to the XContentBuilder passed in.
      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.common.xcontent.ToXContentObject

        isFragment
    • Method Detail

      • innerToXContent

        public org.elasticsearch.common.xcontent.XContentBuilder innerToXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder,
                                                                                 org.elasticsearch.common.xcontent.ToXContent.Params params)
                                                                          throws java.io.IOException
        Description copied from interface: MetricDetail
        Implementations should write their own fields to the XContentBuilder passed in.
        Specified by:
        innerToXContent in interface MetricDetail
        Throws:
        java.io.IOException
      • fromXContent

        public static MeanReciprocalRank.Detail fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser)
      • 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
      • getWriteableName

        public java.lang.String getWriteableName()
        Specified by:
        getWriteableName in interface org.elasticsearch.common.io.stream.NamedWriteable
      • getFirstRelevantRank

        public int getFirstRelevantRank()
        the ranking of the first relevant document, or -1 if no relevant document was found
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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