Class OverallBucket
- java.lang.Object
-
- org.elasticsearch.client.ml.job.results.OverallBucket
-
- All Implemented Interfaces:
ToXContent
,ToXContentObject
public class OverallBucket extends java.lang.Object implements ToXContentObject
Overall Bucket Result POJO
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OverallBucket.JobInfo
-
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
BUCKET_SPAN
static ParseField
JOBS
static ParseField
OVERALL_SCORE
static ConstructingObjectParser<OverallBucket,java.lang.Void>
PARSER
static java.lang.String
RESULT_TYPE_VALUE
Result typestatic ParseField
RESULTS_FIELD
-
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 other)
Compare all the fields and embedded anomaly records (if any)long
getBucketSpan()
Bucketspan expressed in secondsjava.util.List<OverallBucket.JobInfo>
getJobs()
double
getOverallScore()
java.util.Date
getTimestamp()
int
hashCode()
boolean
isInterim()
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
-
OVERALL_SCORE
public static final ParseField OVERALL_SCORE
-
BUCKET_SPAN
public static final ParseField BUCKET_SPAN
-
JOBS
public static final ParseField JOBS
-
RESULTS_FIELD
public static final ParseField RESULTS_FIELD
-
RESULT_TYPE_VALUE
public static final java.lang.String RESULT_TYPE_VALUE
Result type- See Also:
- Constant Field Values
-
PARSER
public static final ConstructingObjectParser<OverallBucket,java.lang.Void> PARSER
-
-
Method Detail
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
getTimestamp
public java.util.Date getTimestamp()
-
getBucketSpan
public long getBucketSpan()
Bucketspan expressed in seconds
-
getOverallScore
public double getOverallScore()
-
getJobs
public java.util.List<OverallBucket.JobInfo> getJobs()
-
isInterim
public boolean isInterim()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
Compare all the fields and embedded anomaly records (if any)- Overrides:
equals
in classjava.lang.Object
-
-