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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
static ExpectedReciprocalRank.Detail
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
java.lang.String
getMetricName()
java.lang.Object
getUnratedDocs()
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 theXContentBuilder
passed in.void
writeTo(org.elasticsearch.common.io.stream.StreamOutput out)
-
Methods inherited from interface org.elasticsearch.index.rankeval.MetricDetail
toXContent
-
-
-
-
Method Detail
-
getMetricName
public java.lang.String getMetricName()
- Specified by:
getMetricName
in 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.IOException
Description copied from interface:MetricDetail
Implementations should write their own fields to theXContentBuilder
passed in.- Specified by:
innerToXContent
in 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:
writeTo
in interfaceorg.elasticsearch.common.io.stream.Writeable
- Throws:
java.io.IOException
-
getWriteableName
public java.lang.String getWriteableName()
- Specified by:
getWriteableName
in 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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-