Module org.elasticsearch.xcore
Class ModelSnapshot
java.lang.Object
org.elasticsearch.xpack.core.ml.job.process.autodetect.state.ModelSnapshot
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
ModelSnapshot Result POJO
-
Nested Class Summary
Nested ClassesNested 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 ParseFieldstatic final Stringstatic final ParseFieldstatic final ParseFieldstatic final ObjectParser<ModelSnapshot.Builder, Void> static final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ObjectParser<ModelSnapshot.Builder, 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 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) toXContent(XContentBuilder builder, 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
Field Names -
DESCRIPTION
-
SNAPSHOT_DOC_COUNT
-
LATEST_RECORD_TIME
-
LATEST_RESULT_TIME
-
QUANTILES
-
RETAIN
-
MIN_VERSION
-
RESULTS_FIELD
-
TYPE
Legacy type, now used only as a discriminant in the document ID -
STRICT_PARSER
-
LENIENT_PARSER
-
EMPTY_SNAPSHOT_ID
- See Also:
-
-
Constructor Details
-
ModelSnapshot
- Throws:
IOException
-
-
Method Details
-
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
-
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
-