Class PrecisionAtK.Detail

java.lang.Object
org.opensearch.index.rankeval.PrecisionAtK.Detail
All Implemented Interfaces:
NamedWriteable, Writeable, org.opensearch.core.xcontent.ToXContent, org.opensearch.core.xcontent.ToXContentObject, MetricDetail
Enclosing class:
PrecisionAtK

public static final class PrecisionAtK.Detail extends Object implements MetricDetail
  • Method Details

    • fromXContent

      public static PrecisionAtK.Detail fromXContent(org.opensearch.core.xcontent.XContentParser parser)
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • innerToXContent

      public org.opensearch.core.xcontent.XContentBuilder innerToXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException
      Description copied from interface: MetricDetail
      Implementations should write their own fields to the XContentBuilder passed in.
      Specified by:
      innerToXContent in interface MetricDetail
      Throws:
      IOException
    • getWriteableName

      public String getWriteableName()
      Specified by:
      getWriteableName in interface NamedWriteable
    • getRelevantRetrieved

      public int getRelevantRetrieved()
    • getRetrieved

      public int getRetrieved()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object