Module org.elasticsearch.xcore
Package org.elasticsearch.xpack.core.ml
Class MlMetadata.MlMetadataDiff
java.lang.Object
org.elasticsearch.xpack.core.ml.MlMetadata.MlMetadataDiff
- All Implemented Interfaces:
Diff<Metadata.Custom>,NamedDiff<Metadata.Custom>,NamedWriteable,Writeable
- Enclosing class:
MlMetadata
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(Metadata.Custom part) Merge the diff with the ML metadata.voidwriteTo(StreamOutput out)
-
Constructor Details
-
MlMetadataDiff
- Throws:
IOException
-
-
Method Details
-
apply
Merge the diff with the ML metadata.- Specified by:
applyin interfaceDiff<Metadata.Custom>- Parameters:
part- The current ML metadata.- Returns:
- The new ML metadata.
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
getMinimalSupportedVersion
- Specified by:
getMinimalSupportedVersionin interfaceNamedDiff<Metadata.Custom>
-