Package org.opensearch.index.rankeval
Class RankEvalRequest
- java.lang.Object
-
- org.opensearch.transport.TransportMessage
-
- org.opensearch.transport.TransportRequest
-
- org.opensearch.action.ActionRequest
-
- org.opensearch.index.rankeval.RankEvalRequest
-
- All Implemented Interfaces:
IndicesRequest,IndicesRequest.Replaceable,Writeable,TaskAwareRequest
public class RankEvalRequest extends ActionRequest implements IndicesRequest.Replaceable
Request to perform a search ranking evaluation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opensearch.transport.TransportRequest
TransportRequest.Empty
-
Nested classes/interfaces inherited from interface org.opensearch.action.IndicesRequest
IndicesRequest.Replaceable
-
Nested 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>
-
-
Constructor Summary
Constructors Constructor Description RankEvalRequest(RankEvalSpec rankingEvaluationSpec, java.lang.String[] indices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)RankEvalSpecgetRankEvalSpec()Returns the specification of the ranking evaluation.inthashCode()java.lang.String[]indices()RankEvalRequestindices(java.lang.String... indices)Sets the indices the search will be executed on.IndicesOptionsindicesOptions()voidindicesOptions(IndicesOptions indicesOptions)SearchTypesearchType()The type of search to execute.voidsearchType(SearchType searchType)The search type to execute, defaults toSearchType.DEFAULT.voidsetRankEvalSpec(RankEvalSpec task)Set the specification of the ranking evaluation.ActionRequestValidationExceptionvalidate()voidwriteTo(StreamOutput out)-
Methods inherited from class org.opensearch.action.ActionRequest
getShouldStoreResult
-
Methods inherited from class org.opensearch.transport.TransportRequest
getParentTask, setParentTask
-
Methods inherited from class org.opensearch.transport.TransportMessage
remoteAddress, remoteAddress
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.action.IndicesRequest
includeDataStreams
-
Methods inherited from interface org.opensearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
-
-
-
Constructor Detail
-
RankEvalRequest
public RankEvalRequest(RankEvalSpec rankingEvaluationSpec, java.lang.String[] indices)
-
-
Method Detail
-
validate
public ActionRequestValidationException validate()
- Specified by:
validatein classActionRequest
-
getRankEvalSpec
public RankEvalSpec getRankEvalSpec()
Returns the specification of the ranking evaluation.
-
setRankEvalSpec
public void setRankEvalSpec(RankEvalSpec task)
Set the specification of the ranking evaluation.
-
indices
public RankEvalRequest indices(java.lang.String... indices)
Sets the indices the search will be executed on.- Specified by:
indicesin interfaceIndicesRequest.Replaceable
-
indices
public java.lang.String[] indices()
- Specified by:
indicesin interfaceIndicesRequest- Returns:
- the indices for this request
-
indicesOptions
public IndicesOptions indicesOptions()
- Specified by:
indicesOptionsin interfaceIndicesRequest
-
indicesOptions
public void indicesOptions(IndicesOptions indicesOptions)
-
searchType
public void searchType(SearchType searchType)
The search type to execute, defaults toSearchType.DEFAULT.
-
searchType
public SearchType searchType()
The type of search to execute.
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classActionRequest- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-