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 classOverallBucket.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 ParseFieldBUCKET_SPANstatic ParseFieldJOBSstatic ParseFieldOVERALL_SCOREstatic ConstructingObjectParser<OverallBucket,java.lang.Void>PARSERstatic java.lang.StringRESULT_TYPE_VALUEResult typestatic ParseFieldRESULTS_FIELD-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object other)Compare all the fields and embedded anomaly records (if any)longgetBucketSpan()Bucketspan expressed in secondsjava.util.List<OverallBucket.JobInfo>getJobs()doublegetOverallScore()java.util.DategetTimestamp()inthashCode()booleanisInterim()XContentBuildertoXContent(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:
toXContentin 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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
Compare all the fields and embedded anomaly records (if any)- Overrides:
equalsin classjava.lang.Object
-
-