Package org.elasticsearch.index.rankeval
Class ExpectedReciprocalRank.Detail
java.lang.Object
org.elasticsearch.index.rankeval.ExpectedReciprocalRank.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:
- ExpectedReciprocalRank
public static final class ExpectedReciprocalRank.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.ParamsNested 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
Modifier and Type Method Description booleanequals(java.lang.Object obj)static ExpectedReciprocalRank.DetailfromXContent(org.elasticsearch.common.xcontent.XContentParser parser)java.lang.StringgetMetricName()java.lang.ObjectgetUnratedDocs()java.lang.StringgetWriteableName()inthashCode()org.elasticsearch.common.xcontent.XContentBuilderinnerToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)Implementations should write their own fields to theXContentBuilderpassed in.voidwriteTo(org.elasticsearch.common.io.stream.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.common.xcontent.ToXContentObject
isFragment
-
Method Details
-
getMetricName
public java.lang.String getMetricName()- Specified by:
getMetricNamein interfaceMetricDetail
-
innerToXContent
public org.elasticsearch.common.xcontent.XContentBuilder innerToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOExceptionDescription copied from interface:MetricDetailImplementations should write their own fields to theXContentBuilderpassed in.- Specified by:
innerToXContentin interfaceMetricDetail- Throws:
java.io.IOException
-
fromXContent
public static ExpectedReciprocalRank.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:
writeToin interfaceorg.elasticsearch.common.io.stream.Writeable- Throws:
java.io.IOException
-
getWriteableName
public java.lang.String getWriteableName()- Specified by:
getWriteableNamein interfaceorg.elasticsearch.common.io.stream.NamedWriteable
-
getUnratedDocs
public java.lang.Object getUnratedDocs()- Returns:
- the number of unrated documents in the search results
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-