Module org.elasticsearch.xcore
Class ModelAliasMetadata
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.ModelAliasMetadata
- All Implemented Interfaces:
Diffable<Metadata.Custom>,Metadata.Custom,NamedDiffable<Metadata.Custom>,NamedWriteable,VersionedNamedWriteable,Writeable,ChunkedToXContent
Custom
Metadata implementation for storing a map of model aliases that point to model IDs-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModelAliasMetadata(Map<String, ModelAliasMetadata.ModelAliasEntry> modelAliases) -
Method Summary
Modifier and TypeMethodDescriptioncontext()diff(Metadata.Custom previousState) static ModelAliasMetadatastatic ModelAliasMetadatafromXContent(org.elasticsearch.xcontent.XContentParser parser) getModelId(String modelAlias) static NamedDiff<Metadata.Custom> Iterator<? extends org.elasticsearch.xcontent.ToXContent> toXContentChunked(org.elasticsearch.xcontent.ToXContent.Params params) 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.common.xcontent.ChunkedToXContent
isFragment, toXContentChunked, toXContentChunkedV8Methods inherited from interface org.elasticsearch.cluster.metadata.Metadata.Custom
isRestorable
-
Field Details
-
NAME
- See Also:
-
EMPTY
-
-
Constructor Details
-
ModelAliasMetadata
-
ModelAliasMetadata
- Throws:
IOException
-
-
Method Details
-
fromState
-
readDiffFrom
- Throws:
IOException
-
fromXContent
-
modelAliases
-
toXContentChunked
public Iterator<? extends org.elasticsearch.xcontent.ToXContent> toXContentChunked(org.elasticsearch.xcontent.ToXContent.Params params) - Specified by:
toXContentChunkedin interfaceChunkedToXContent
-
diff
- Specified by:
diffin interfaceDiffable<Metadata.Custom>
-
context
- Specified by:
contextin interfaceMetadata.Custom
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable- Specified by:
getWriteableNamein interfaceVersionedNamedWriteable
-
getMinimalSupportedVersion
- Specified by:
getMinimalSupportedVersionin interfaceVersionedNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getModelId
-