Class RankEvalMetricDetail
java.lang.Object
org.opensearch.client.opensearch.core.rank_eval.RankEvalMetricDetail
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<RankEvalMetricDetail.Builder,RankEvalMetricDetail>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class RankEvalMetricDetail
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<RankEvalMetricDetail.Builder,RankEvalMetricDetail>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<RankEvalMetricDetail> Json deserializer forRankEvalMetricDetail -
Method Summary
Modifier and TypeMethodDescriptionstatic RankEvalMetricDetail.Builderbuilder()booleaninthashCode()final List<RankEvalHitItem> hits()Required - Thehitssection provides a grouping of the search results with their supplied ratings.Required - Themetric_detailssection provides additional information about the calculated quality metric indicating the number of relevant retrieved documents.final doubleRequired - Themetric_score, found in themetric_detailssection, shows the contribution of this query to the global quality metric score.static RankEvalMetricDetailvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final List<UnratedDocument> Required - Theunrated_docssection contains an_indexand_identry for each document that didn't have aratingsvalue.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forRankEvalMetricDetail
-
-
Method Details
-
of
public static RankEvalMetricDetail of(Function<RankEvalMetricDetail.Builder, ObjectBuilder<RankEvalMetricDetail>> fn) -
hits
Required - Thehitssection provides a grouping of the search results with their supplied ratings.API name:
hits -
metricDetails
Required - Themetric_detailssection provides additional information about the calculated quality metric indicating the number of relevant retrieved documents. The content varies for each metric but allows for better interpretation of the results.API name:
metric_details -
metricScore
public final double metricScore()Required - Themetric_score, found in themetric_detailssection, shows the contribution of this query to the global quality metric score.API name:
metric_score -
unratedDocs
Required - Theunrated_docssection contains an_indexand_identry for each document that didn't have aratingsvalue. This can be used to ask the user to supply ratings for these documents.API name:
unrated_docs -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<RankEvalMetricDetail.Builder,RankEvalMetricDetail> - Returns:
- a new builder instance.
-
builder
-
setupRankEvalMetricDetailDeserializer
protected static void setupRankEvalMetricDetailDeserializer(ObjectDeserializer<RankEvalMetricDetail.Builder> op) -
hashCode
public int hashCode() -
equals
-