Class OverallBucket
- java.lang.Object
-
- org.elasticsearch.client.ml.job.results.OverallBucket
-
- All Implemented Interfaces:
ToXContent,ToXContentObject
public class OverallBucket extends 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,Void>PARSERstatic StringRESULT_TYPE_VALUEResult typestatic ParseFieldRESULTS_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 booleanequals(Object other)Compare all the fields and embedded anomaly records (if any)longgetBucketSpan()Bucketspan expressed in secondsList<OverallBucket.JobInfo>getJobs()doublegetOverallScore()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 String RESULT_TYPE_VALUE
Result type- See Also:
- Constant Field Values
-
PARSER
public static final ConstructingObjectParser<OverallBucket,Void> PARSER
-
-
Method Detail
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
getTimestamp
public Date getTimestamp()
-
getBucketSpan
public long getBucketSpan()
Bucketspan expressed in seconds
-
getOverallScore
public double getOverallScore()
-
getJobs
public List<OverallBucket.JobInfo> getJobs()
-
isInterim
public boolean isInterim()
-
-