java.lang.Object
org.elasticsearch.xpack.core.ml.job.results.OverallBucket
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

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

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    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.ParseField
     
    static final org.elasticsearch.xcontent.ParseField
     
    static final org.elasticsearch.xcontent.ParseField
     
    static final String
    Result type
    static final org.elasticsearch.xcontent.ParseField
     

    Fields inherited from interface org.elasticsearch.xcontent.ToXContent

    EMPTY, EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Constructor
    Description
    OverallBucket(Date timestamp, long bucketSpan, double overallScore, List<OverallBucket.JobInfo> jobs, boolean isInterim)
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
    Compare all the fields and embedded anomaly records (if any)
    long
    Bucketspan expressed in seconds
     
    double
     
     
    int
     
    boolean
     
    org.elasticsearch.xcontent.XContentBuilder
    toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)
     
    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

    • OVERALL_SCORE

      public static final org.elasticsearch.xcontent.ParseField OVERALL_SCORE
    • BUCKET_SPAN

      public static final org.elasticsearch.xcontent.ParseField BUCKET_SPAN
    • JOBS

      public static final org.elasticsearch.xcontent.ParseField JOBS
    • RESULTS_FIELD

      public static final org.elasticsearch.xcontent.ParseField RESULTS_FIELD
    • RESULT_TYPE_VALUE

      public static final String RESULT_TYPE_VALUE
      Result type
      See Also:
  • Constructor Details

  • Method Details

    • 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
    • getTimestamp

      public Date getTimestamp()
    • getBucketSpan

      public long getBucketSpan()
      Bucketspan expressed in seconds
    • getOverallScore

      public double getOverallScore()
    • getJobs

      public List<OverallBucket.JobInfo> getJobs()
    • isInterim

      public boolean isInterim()
    • hashCode

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

      public boolean equals(Object other)
      Compare all the fields and embedded anomaly records (if any)
      Overrides:
      equals in class Object