Class MeanReciprocalRank.Detail

java.lang.Object
org.elasticsearch.index.rankeval.MeanReciprocalRank.Detail
All Implemented Interfaces:
NamedWriteable, Writeable, MetricDetail, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject
Enclosing class:
MeanReciprocalRank

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

    Writeable.Reader<V extends Object>, Writeable.Writer<V extends Object>
  • Field Summary

    Fields inherited from interface org.elasticsearch.xcontent.ToXContent

    EMPTY_PARAMS
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    fromXContent(org.elasticsearch.xcontent.XContentParser parser)
     
    int
    the ranking of the first relevant document, or -1 if no relevant document was found
     
     
    int
     
    org.elasticsearch.xcontent.XContentBuilder
    innerToXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)
    Implementations should write their own fields to the XContentBuilder passed in.
    void
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.elasticsearch.index.rankeval.MetricDetail

    toXContent

    Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject

    isFragment
  • Method Details

    • getMetricName

      public String getMetricName()
      Specified by:
      getMetricName in interface MetricDetail
    • innerToXContent

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

      public static MeanReciprocalRank.Detail fromXContent(org.elasticsearch.xcontent.XContentParser parser)
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • getWriteableName

      public String getWriteableName()
      Specified by:
      getWriteableName in interface NamedWriteable
    • getFirstRelevantRank

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object