Class RecallAtK.Detail

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

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

    • fromXContent

      public static RecallAtK.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 long getRelevantRetrieved()
    • getRelevant

      public long getRelevant()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object