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.ProjectCustom>,NamedDiff<Metadata.ProjectCustom>,NamedWriteable,Writeable
- Enclosing class:
MlMetadata
public static class MlMetadata.MlMetadataDiff
extends Object
implements NamedDiff<Metadata.ProjectCustom>
-
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.ProjectCustom part) Merge the diff with the ML metadata.voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.cluster.NamedDiff
supportsVersion
-
Constructor Details
-
MlMetadataDiff
- Throws:
IOException
-
-
Method Details
-
apply
Merge the diff with the ML metadata.- Specified by:
applyin interfaceDiff<Metadata.ProjectCustom>- 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.ProjectCustom>
-