Package org.elasticsearch.index.rankeval
Class RankEvalRequest
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportRequest
-
- org.elasticsearch.action.ActionRequest
-
- org.elasticsearch.index.rankeval.RankEvalRequest
-
- All Implemented Interfaces:
org.elasticsearch.action.IndicesRequest,org.elasticsearch.action.IndicesRequest.Replaceable,org.elasticsearch.common.io.stream.Streamable,org.elasticsearch.common.io.stream.Writeable,org.elasticsearch.tasks.TaskAwareRequest
public class RankEvalRequest extends org.elasticsearch.action.ActionRequest implements org.elasticsearch.action.IndicesRequest.ReplaceableRequest to perform a search ranking evaluation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequest
org.elasticsearch.action.IndicesRequest.Replaceable
-
-
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.org.elasticsearch.action.support.IndicesOptionsindicesOptions()voidindicesOptions(org.elasticsearch.action.support.IndicesOptions indicesOptions)voidreadFrom(org.elasticsearch.common.io.stream.StreamInput in)voidsetRankEvalSpec(RankEvalSpec task)Set the the specification of the ranking evaluation.org.elasticsearch.action.ActionRequestValidationExceptionvalidate()voidwriteTo(org.elasticsearch.common.io.stream.StreamOutput out)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
-
-
-
Constructor Detail
-
RankEvalRequest
public RankEvalRequest(RankEvalSpec rankingEvaluationSpec, java.lang.String[] indices)
-
-
Method Detail
-
validate
public org.elasticsearch.action.ActionRequestValidationException validate()
- Specified by:
validatein classorg.elasticsearch.action.ActionRequest
-
getRankEvalSpec
public RankEvalSpec getRankEvalSpec()
Returns the specification of the ranking evaluation.
-
setRankEvalSpec
public void setRankEvalSpec(RankEvalSpec task)
Set the 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 interfaceorg.elasticsearch.action.IndicesRequest.Replaceable
-
indices
public java.lang.String[] indices()
- Specified by:
indicesin interfaceorg.elasticsearch.action.IndicesRequest- Returns:
- the indices for this request
-
indicesOptions
public org.elasticsearch.action.support.IndicesOptions indicesOptions()
- Specified by:
indicesOptionsin interfaceorg.elasticsearch.action.IndicesRequest
-
indicesOptions
public void indicesOptions(org.elasticsearch.action.support.IndicesOptions indicesOptions)
-
readFrom
public void readFrom(org.elasticsearch.common.io.stream.StreamInput in) throws java.io.IOException- Specified by:
readFromin interfaceorg.elasticsearch.common.io.stream.Streamable- Overrides:
readFromin classorg.elasticsearch.action.ActionRequest- Throws:
java.io.IOException
-
writeTo
public void writeTo(org.elasticsearch.common.io.stream.StreamOutput out) throws java.io.IOException- Specified by:
writeToin interfaceorg.elasticsearch.common.io.stream.Streamable- Specified by:
writeToin interfaceorg.elasticsearch.common.io.stream.Writeable- Overrides:
writeToin classorg.elasticsearch.action.ActionRequest- 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
-
-