Class SimpleStats
java.lang.Object
org.elasticsearch.client.ml.job.stats.SimpleStats
- All Implemented Interfaces:
ToXContent
,ToXContentObject
public class SimpleStats extends java.lang.Object implements ToXContentObject
Helper class for min, max, avg and total statistics for a quantity
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Field Summary
Fields Modifier and Type Field Description static ParseField
AVG
static ParseField
MAX
static ParseField
MIN
static ConstructingObjectParser<SimpleStats,java.lang.Void>
PARSER
static ParseField
TOTAL
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
double
getAvg()
double
getMax()
double
getMin()
double
getTotal()
int
hashCode()
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
-
Field Details
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-