org.elasticsearch.common.io.stream.NamedWriteable, org.elasticsearch.common.io.stream.Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject, MetricDetailpublic static final class MeanReciprocalRank.Detail extends java.lang.Object implements MetricDetail
| 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) |
toXContentpublic java.lang.String getMetricName()
getMetricName in interface MetricDetailpublic org.elasticsearch.common.xcontent.XContentBuilder innerToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params)
throws java.io.IOException
MetricDetailXContentBuilder passed in.innerToXContent in interface MetricDetailjava.io.IOExceptionpublic static MeanReciprocalRank.Detail fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
public void writeTo(org.elasticsearch.common.io.stream.StreamOutput out)
throws java.io.IOException
writeTo in interface org.elasticsearch.common.io.stream.Writeablejava.io.IOExceptionpublic java.lang.String getWriteableName()
getWriteableName in interface org.elasticsearch.common.io.stream.NamedWriteablepublic int getFirstRelevantRank()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object