Package org.elasticsearch.index.rankeval
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
-
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.ParamsNested 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 TypeMethodDescriptionbooleanstatic MeanReciprocalRank.DetailfromXContent(org.elasticsearch.xcontent.XContentParser parser) intthe ranking of the first relevant document, or -1 if no relevant document was foundinthashCode()org.elasticsearch.xcontent.XContentBuilderinnerToXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) Implementations should write their own fields to theXContentBuilderpassed in.voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.index.rankeval.MetricDetail
toXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Method Details
-
getMetricName
- Specified by:
getMetricNamein interfaceMetricDetail
-
innerToXContent
public org.elasticsearch.xcontent.XContentBuilder innerToXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException Description copied from interface:MetricDetailImplementations should write their own fields to theXContentBuilderpassed in.- Specified by:
innerToXContentin interfaceMetricDetail- Throws:
IOException
-
fromXContent
public static MeanReciprocalRank.Detail fromXContent(org.elasticsearch.xcontent.XContentParser parser) -
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
getFirstRelevantRank
public int getFirstRelevantRank()the ranking of the first relevant document, or -1 if no relevant document was found -
equals
-
hashCode
public int hashCode()
-