Module org.elasticsearch.xcore
Class CoordinatedInferenceAction.Request
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.LegacyActionRequest
org.elasticsearch.xpack.core.ml.action.CoordinatedInferenceAction.Request
- All Implemented Interfaces:
Writeable,org.elasticsearch.core.RefCounted,TaskAwareRequest
- Enclosing class:
CoordinatedInferenceAction
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanforMapInput(String modelId, List<Map<String, Object>> objectsToInfer, InferenceConfigUpdate inferenceConfigUpdate, Boolean previouslyLicensed, org.elasticsearch.core.TimeValue inferenceTimeout, CoordinatedInferenceAction.Request.RequestModelType modelType) forTextInput(String modelId, List<String> inputs, InferenceConfigUpdate inferenceConfigUpdate, Boolean previouslyLicensed, org.elasticsearch.core.TimeValue inferenceTimeout) booleanorg.elasticsearch.core.TimeValueinthashCode()booleanbooleanvoidsetHighPriority(boolean highPriority) voidsetPrefixType(TrainedModelPrefixStrings.PrefixType prefixType) validate()voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, getRequestId, setParentTask, setRequestId, toStringMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRefMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
Request
- Throws:
IOException
-
-
Method Details
-
forTextInput
public static CoordinatedInferenceAction.Request forTextInput(String modelId, List<String> inputs, @Nullable InferenceConfigUpdate inferenceConfigUpdate, @Nullable Boolean previouslyLicensed, @Nullable org.elasticsearch.core.TimeValue inferenceTimeout) -
forMapInput
public static CoordinatedInferenceAction.Request forMapInput(String modelId, List<Map<String, Object>> objectsToInfer, @Nullable InferenceConfigUpdate inferenceConfigUpdate, @Nullable Boolean previouslyLicensed, @Nullable org.elasticsearch.core.TimeValue inferenceTimeout, CoordinatedInferenceAction.Request.RequestModelType modelType) -
getModelId
-
getInputs
-
getTaskSettings
-
getObjectsToInfer
-
getInferenceConfigUpdate
-
getPreviouslyLicensed
-
getInferenceTimeout
public org.elasticsearch.core.TimeValue getInferenceTimeout() -
getHighPriority
public boolean getHighPriority() -
setHighPriority
public void setHighPriority(boolean highPriority) -
hasInferenceConfig
public boolean hasInferenceConfig() -
hasObjects
public boolean hasObjects() -
setPrefixType
-
getPrefixType
-
getRequestModelType
-
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classActionRequest- Throws:
IOException
-
validate
- Specified by:
validatein classActionRequest
-
equals
-
hashCode
public int hashCode()
-