java.lang.Object
org.elasticsearch.xpack.core.ml.job.process.autodetect.state.ModelState

public final class ModelState extends Object
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 Details

    • TYPE

      public static final String TYPE
      Legacy type, now used only as a discriminant in the document ID
      See Also:
  • Method Details

    • documentId

      public static String documentId(String jobId, String snapshotId, int docNum)
    • extractJobId

      public static String extractJobId(String docId)
      Given the id of a state document it extracts the job id
      Parameters:
      docId - the state document id
      Returns:
      the job id or null if the id is not valid