java.lang.Object
org.elasticsearch.xpack.core.ml.job.process.autodetect.state.Quantiles
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class Quantiles extends Object implements org.elasticsearch.xcontent.ToXContentObject, Writeable
Quantiles Result POJO
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent

    org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params

    Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable

    Writeable.Reader<V>, Writeable.Writer<V>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.elasticsearch.xcontent.ConstructingObjectParser<Quantiles,Void>
     
    static final org.elasticsearch.xcontent.ParseField
     
    static final org.elasticsearch.xcontent.ConstructingObjectParser<Quantiles,Void>
     
    static final org.elasticsearch.xcontent.ParseField
    Field Names
    static final org.elasticsearch.xcontent.ParseField
    Legacy type, now used only as a discriminant in the document ID

    Fields inherited from interface org.elasticsearch.xcontent.ToXContent

    EMPTY, EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Constructor
    Description
    Quantiles(String jobId, Date timestamp, String quantileState)
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
     
    boolean
    equals(Object other)
    Compare all the fields.
    static String
    Given the id of a quantiles document it extracts the job id
     
     
     
    int
     
    org.elasticsearch.xcontent.XContentBuilder
    toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)
     
    static String
    This is how the IDs were formed in v5.4
    void
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject

    isFragment
  • Field Details

    • TIMESTAMP

      public static final org.elasticsearch.xcontent.ParseField TIMESTAMP
      Field Names
    • QUANTILE_STATE

      public static final org.elasticsearch.xcontent.ParseField QUANTILE_STATE
    • TYPE

      public static final org.elasticsearch.xcontent.ParseField TYPE
      Legacy type, now used only as a discriminant in the document ID
    • STRICT_PARSER

      public static final org.elasticsearch.xcontent.ConstructingObjectParser<Quantiles,Void> STRICT_PARSER
    • LENIENT_PARSER

      public static final org.elasticsearch.xcontent.ConstructingObjectParser<Quantiles,Void> LENIENT_PARSER
  • Constructor Details

  • Method Details

    • documentId

      public static String documentId(String jobId)
    • v54DocumentId

      public static String v54DocumentId(String jobId)
      This is how the IDs were formed in v5.4
    • extractJobId

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

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • getJobId

      public String getJobId()
    • getTimestamp

      public Date getTimestamp()
    • getQuantileState

      public String getQuantileState()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Compare all the fields.
      Overrides:
      equals in class Object