Module org.elasticsearch.xcore
Class ModelSnapshot
java.lang.Object
org.elasticsearch.xpack.core.ml.job.process.autodetect.state.ModelSnapshot
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public class ModelSnapshot
extends Object
implements org.elasticsearch.xcontent.ToXContentObject, Writeable
ModelSnapshot Result POJO
-
Nested Class Summary
Nested ClassesNested 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 Stringstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ObjectParser<ModelSnapshot.Builder, Void> static final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ObjectParser<ModelSnapshot.Builder, Void> static 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 StringannotationDocumentId(ModelSnapshot snapshot) static StringdocumentId(String jobId, String snapshotId) static StringdocumentId(ModelSnapshot snapshot) static StringdocumentIdPrefix(String jobId) static ModelSnapshotemptySnapshot(String jobId) booleanCompare all the fields.static ModelSnapshotfromJson(BytesReference bytesReference) getJobId()intinthashCode()booleanisRetain()booleanstatic booleanisTheEmptySnapshot(String snapshotId) org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) static Stringv54DocumentId(String jobId, String snapshotId) This is how the IDs were formed in v5.4static Stringv54DocumentId(ModelSnapshot snapshot) 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 -
DESCRIPTION
public static final org.elasticsearch.xcontent.ParseField DESCRIPTION -
SNAPSHOT_DOC_COUNT
public static final org.elasticsearch.xcontent.ParseField SNAPSHOT_DOC_COUNT -
LATEST_RECORD_TIME
public static final org.elasticsearch.xcontent.ParseField LATEST_RECORD_TIME -
LATEST_RESULT_TIME
public static final org.elasticsearch.xcontent.ParseField LATEST_RESULT_TIME -
QUANTILES
public static final org.elasticsearch.xcontent.ParseField QUANTILES -
RETAIN
public static final org.elasticsearch.xcontent.ParseField RETAIN -
MIN_VERSION
public static final org.elasticsearch.xcontent.ParseField MIN_VERSION -
RESULTS_FIELD
public static final org.elasticsearch.xcontent.ParseField RESULTS_FIELD -
TYPE
public static final org.elasticsearch.xcontent.ParseField TYPELegacy type, now used only as a discriminant in the document ID -
STRICT_PARSER
public static final org.elasticsearch.xcontent.ObjectParser<ModelSnapshot.Builder,Void> STRICT_PARSER -
LENIENT_PARSER
public static final org.elasticsearch.xcontent.ObjectParser<ModelSnapshot.Builder,Void> LENIENT_PARSER -
EMPTY_SNAPSHOT_ID
- See Also:
-
-
Constructor Details
-
ModelSnapshot
- Throws:
IOException
-
-
Method Details
-
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
-
getMinVersion
-
getTimestamp
-
getDescription
-
getSnapshotId
-
getSnapshotDocCount
public int getSnapshotDocCount() -
getModelSizeStats
-
getQuantiles
-
getLatestRecordTimeStamp
-
getLatestResultTimeStamp
-
isRetain
public boolean isRetain() -
hashCode
public int hashCode() -
equals
Compare all the fields. -
stateDocumentIds
-
isTheEmptySnapshot
public boolean isTheEmptySnapshot() -
isTheEmptySnapshot
-
documentIdPrefix
-
annotationDocumentId
-
documentId
-
v54DocumentId
This is how the IDs were formed in v5.4 -
documentId
-
v54DocumentId
This is how the IDs were formed in v5.4 -
fromJson
-
emptySnapshot
-