Class SimpleStats

java.lang.Object
org.elasticsearch.client.ml.job.stats.SimpleStats
All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class SimpleStats extends Object implements org.elasticsearch.xcontent.ToXContentObject
Helper class for min, max, avg and total statistics for a quantity
  • 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
  • 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 org.elasticsearch.xcontent.ConstructingObjectParser<SimpleStats,Void>
     
    static final org.elasticsearch.xcontent.ParseField
     

    Fields inherited from interface org.elasticsearch.xcontent.ToXContent

    EMPTY_PARAMS
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    double
     
    double
     
    double
     
    double
     
    int
     
    org.elasticsearch.xcontent.XContentBuilder
    toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)
     

    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

    • MIN

      public static final org.elasticsearch.xcontent.ParseField MIN
    • MAX

      public static final org.elasticsearch.xcontent.ParseField MAX
    • AVG

      public static final org.elasticsearch.xcontent.ParseField AVG
    • TOTAL

      public static final org.elasticsearch.xcontent.ParseField TOTAL
    • PARSER

      public static final org.elasticsearch.xcontent.ConstructingObjectParser<SimpleStats,Void> PARSER
  • Method Details

    • getMin

      public double getMin()
    • getMax

      public double getMax()
    • getAvg

      public double getAvg()
    • getTotal

      public double getTotal()
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • 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