- All Superinterfaces:
NamedWriteable,ToXContent,ToXContentFragment,Writeable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested 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 inoutputFieldstatic voidwriteResult(InferenceResults results, IngestDocument ingestDocument, String resultField, String modelId) static voidwriteResultToField(InferenceResults results, IngestDocument ingestDocument, String basePath, String outputField, String modelId, boolean includeModelId) Methods inherited from interface org.elasticsearch.common.io.stream.NamedWriteable
getWriteableNameMethods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContentMethods 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()
-