Module org.elasticsearch.xcore
Class ModelState
java.lang.Object
org.elasticsearch.xpack.core.ml.job.process.autodetect.state.ModelState
The model state does not need to be understood on the Java side.
The Java code only needs to know how to form the document IDs so that
it can retrieve and delete the correct documents.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdocumentId(String jobId, String snapshotId, int docNum) static StringextractJobId(String docId) Given the id of a state document it extracts the job id
-
Field Details
-
TYPE
Legacy type, now used only as a discriminant in the document ID- See Also:
-
-
Method Details
-
documentId
-
extractJobId
Given the id of a state document it extracts the job id- Parameters:
docId- the state document id- Returns:
- the job id or
nullif the id is not valid
-