Module org.elasticsearch.xcore
Class InferenceAction.Request
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.xpack.core.inference.action.BaseInferenceActionRequest
org.elasticsearch.xpack.core.inference.action.InferenceAction.Request
- All Implemented Interfaces:
Writeable,org.elasticsearch.core.RefCounted,TaskAwareRequest
- Enclosing class:
InferenceAction
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.elasticsearch.core.TimeValuestatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.elasticsearch.core.TimeValuegetInput()getQuery()inthashCode()booleanparseRequest(String inferenceEntityId, TaskType taskType, org.elasticsearch.xcontent.XContentParser parser) toString()validate()voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.xpack.core.inference.action.BaseInferenceActionRequest
hasBeenRerouted, setHasBeenReroutedMethods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, getRequestId, setParentTask, setRequestIdMethods 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
-
Field Details
-
DEFAULT_TIMEOUT
public static final org.elasticsearch.core.TimeValue DEFAULT_TIMEOUT -
INPUT
public static final org.elasticsearch.xcontent.ParseField INPUT -
TASK_SETTINGS
public static final org.elasticsearch.xcontent.ParseField TASK_SETTINGS -
QUERY
public static final org.elasticsearch.xcontent.ParseField QUERY -
TIMEOUT
public static final org.elasticsearch.xcontent.ParseField TIMEOUT
-
-
Constructor Details
-
Request
-
Request
- Throws:
IOException
-
-
Method Details
-
parseRequest
public static InferenceAction.Request.Builder parseRequest(String inferenceEntityId, TaskType taskType, org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
getTaskType
- Specified by:
getTaskTypein classBaseInferenceActionRequest
-
getInferenceEntityId
- Specified by:
getInferenceEntityIdin classBaseInferenceActionRequest
-
getInput
-
getQuery
-
getTaskSettings
-
getInputType
-
getInferenceTimeout
public org.elasticsearch.core.TimeValue getInferenceTimeout() -
isStreaming
public boolean isStreaming()- Specified by:
isStreamingin classBaseInferenceActionRequest
-
validate
- Specified by:
validatein classActionRequest
-
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classBaseInferenceActionRequest- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
- Overrides:
toStringin classTransportRequest
-