Module org.elasticsearch.xcore
Class Quantiles
java.lang.Object
org.elasticsearch.xpack.core.ml.job.process.autodetect.state.Quantiles
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public class Quantiles
extends Object
implements org.elasticsearch.xcontent.ToXContentObject, Writeable
Quantiles Result POJO
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.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 org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldField Namesstatic final org.elasticsearch.xcontent.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()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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
public static final org.elasticsearch.xcontent.ParseField TIMESTAMPField Names -
QUANTILE_STATE
public static final org.elasticsearch.xcontent.ParseField QUANTILE_STATE -
TYPE
public static final org.elasticsearch.xcontent.ParseField TYPELegacy 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 org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
getJobId
-
getTimestamp
-
getQuantileState
-
hashCode
public int hashCode() -
equals
Compare all the fields.
-