Module org.elasticsearch.xcore
Class CategorizerState
java.lang.Object
org.elasticsearch.xpack.core.ml.job.process.autodetect.state.CategorizerState
The categorizer 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 final StringdocumentId(String jobId, int docNum) static final StringdocumentPrefix(String jobId) static final StringextractJobId(String docId) Given the id of a categorizer state document it extracts the job idstatic final Stringv54DocumentId(String jobId, int docNum) This is how the IDs were formed in v5.4static final Stringv54DocumentPrefix(String jobId)
-
Field Details
-
TYPE
Legacy type, now used only as a discriminant in the document ID- See Also:
-
-
Method Details
-
documentId
-
documentPrefix
-
v54DocumentId
This is how the IDs were formed in v5.4 -
v54DocumentPrefix
-
extractJobId
Given the id of a categorizer state document it extracts the job id- Parameters:
docId- the categorizer state document id- Returns:
- the job id or
nullif the id is not valid
-