Module org.elasticsearch.xcore
Class GetInferenceFieldsAction.Response
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.action.ActionResponse
org.elasticsearch.xpack.core.inference.action.GetInferenceFieldsAction.Response
- All Implemented Interfaces:
Writeable,org.elasticsearch.core.RefCounted
- Enclosing class:
GetInferenceFieldsAction
A response containing an inference fields map and, if a query was specified in the GetInferenceFieldsAction.Request, the inference
results for those fields.
The inference fields map key is a concrete index name. The value is a list of GetInferenceFieldsAction.ExtendedInferenceFieldMetadata,
representing the metadata for all matching inference fields in that index.
The inference results map key is an inference ID. The value is the inference results from the inference endpoint
that the inference ID resolves to. If no query was specified in the GetInferenceFieldsAction.Request, this will be an empty map.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.action.ActionResponse
ActionResponse.EmptyNested 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
ConstructorsConstructorDescriptionResponse(Map<String, List<GetInferenceFieldsAction.ExtendedInferenceFieldMetadata>> inferenceFieldsMap, Map<String, InferenceResults> inferenceResultsMap) Response(StreamInput in) -
Method Summary
Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, tryIncRefMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRef
-
Constructor Details
-
Response
public Response(Map<String, List<GetInferenceFieldsAction.ExtendedInferenceFieldMetadata>> inferenceFieldsMap, Map<String, InferenceResults> inferenceResultsMap) -
Response
- Throws:
IOException
-
-
Method Details
-
writeTo
- Throws:
IOException
-
getInferenceFieldsMap
public Map<String,List<GetInferenceFieldsAction.ExtendedInferenceFieldMetadata>> getInferenceFieldsMap() -
getInferenceResultsMap
-
equals
-
hashCode
public int hashCode()
-