Module org.elasticsearch.xcore
Class Quantiles
java.lang.Object
org.elasticsearch.xpack.core.ml.job.process.autodetect.state.Quantiles
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
Quantiles Result POJO
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConstructingObjectParser<Quantiles, Void> static final ParseFieldstatic final ConstructingObjectParser<Quantiles, Void> static final ParseFieldField Namesstatic final ParseFieldLegacy type, now used only as a discriminant in the document IDFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdocumentId(String jobId) booleanCompare all the fields.static StringextractJobId(String docId) Given the id of a quantiles document it extracts the job idgetJobId()inthashCode()toXContent(XContentBuilder builder, ToXContent.Params params) static Stringv54DocumentId(String jobId) This is how the IDs were formed in v5.4voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
TIMESTAMP
Field Names -
QUANTILE_STATE
-
TYPE
Legacy type, now used only as a discriminant in the document ID -
STRICT_PARSER
-
LENIENT_PARSER
-
-
Constructor Details
-
Quantiles
-
Quantiles
- Throws:
IOException
-
-
Method Details
-
documentId
-
v54DocumentId
This is how the IDs were formed in v5.4 -
extractJobId
Given the id of a quantiles document it extracts the job id- Parameters:
docId- the quantiles document id- Returns:
- the job id or
nullif the id is not valid
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
getJobId
-
getTimestamp
-
getQuantileState
-
hashCode
public int hashCode() -
equals
Compare all the fields.
-