- All Superinterfaces:
NamedWriteable
,ToXContent
,ToXContentFragment
,Writeable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Method Summary
Modifier and TypeMethodDescriptionasMap()
Convert to a mapConvert to a map placing the inference result inoutputField
static void
writeResult
(InferenceResults results, IngestDocument ingestDocument, String resultField, String modelId) static void
writeResultToField
(InferenceResults results, IngestDocument ingestDocument, String basePath, String outputField, String modelId, boolean includeModelId) Methods inherited from interface org.elasticsearch.common.io.stream.NamedWriteable
getWriteableName
Methods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContent
Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
MODEL_ID_RESULTS_FIELD
- See Also:
-
-
Method Details
-
writeResult
static void writeResult(InferenceResults results, IngestDocument ingestDocument, String resultField, String modelId) -
writeResultToField
static void writeResultToField(InferenceResults results, IngestDocument ingestDocument, @Nullable String basePath, String outputField, String modelId, boolean includeModelId) -
getResultsField
String getResultsField() -
asMap
Convert to a map- Returns:
- Map representation of the InferenceResult
-
asMap
Convert to a map placing the inference result inoutputField
- Parameters:
outputField
- Write the inference result to this field- Returns:
- Map representation of the InferenceResult
-
predictedValue
Object predictedValue()
-