Package org.opensearch.index.rankeval
Class PrecisionAtK.Detail
java.lang.Object
org.opensearch.index.rankeval.PrecisionAtK.Detail
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent,ToXContentObject,MetricDetail
- Enclosing class:
- PrecisionAtK
public static final class PrecisionAtK.Detail extends java.lang.Object implements MetricDetail
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.common.io.stream.Writeable
Writeable.Reader<V extends java.lang.Object>, Writeable.Writer<V extends java.lang.Object> -
Field Summary
-
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)static PrecisionAtK.DetailfromXContent(XContentParser parser)intgetRelevantRetrieved()intgetRetrieved()java.lang.StringgetWriteableName()inthashCode()XContentBuilderinnerToXContent(XContentBuilder builder, 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.opensearch.index.rankeval.MetricDetail
getMetricName, toXContent
-
Method Details
-
fromXContent
-
writeTo
-
innerToXContent
public XContentBuilder innerToXContent(XContentBuilder builder, 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
-
getWriteableName
public java.lang.String getWriteableName()- Specified by:
getWriteableNamein interfaceNamedWriteable
-
getRelevantRetrieved
public int getRelevantRetrieved() -
getRetrieved
public int getRetrieved() -
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-