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
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
All Methods Instance Methods Concrete Methods 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)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
MIN
public static final ParseField MIN
-
MAX
public static final ParseField MAX
-
AVG
public static final ParseField AVG
-
TOTAL
public static final ParseField TOTAL
-
PARSER
public static final ConstructingObjectParser<SimpleStats,java.lang.Void> PARSER
-
-
Method Detail
-
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
-
-