Package org.apache.gravitino.dto.model
Class ModelVersionDTO
java.lang.Object
org.apache.gravitino.dto.model.ModelVersionDTO
- All Implemented Interfaces:
Auditable,ModelVersion
Represents a model version DTO (Data Transfer Object).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for constructing a Model Version DTO. -
Field Summary
Fields inherited from interface org.apache.gravitino.model.ModelVersion
PROPERTY_DEFAULT_URI_NAME, URI_NAME_UNKNOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]aliases()The aliases of this model version.static ModelVersionDTO.Builderbuilder()Creates a new builder for constructing a Model Version DTO.comment()The comment of this model version.The properties of the model version.uris()The name and corresponding URI of the model artifact.intversion()The version of this model object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.gravitino.model.ModelVersion
uri
-
Constructor Details
-
ModelVersionDTO
public ModelVersionDTO()
-
-
Method Details
-
auditInfo
-
version
public int version()Description copied from interface:ModelVersionThe version of this model object. The version number is an integer number starts from 0. Each time the model checkpoint / snapshot is linked to the registered, the version number will be increased by 1.- Specified by:
versionin interfaceModelVersion- Returns:
- The version of the model object.
-
comment
Description copied from interface:ModelVersionThe comment of this model version. This comment can be different from the comment of the model to provide more detailed information about this version.- Specified by:
commentin interfaceModelVersion- Returns:
- The comment of the model version. Null is returned if no comment is set.
-
aliases
Description copied from interface:ModelVersionThe aliases of this model version. The aliases are the alternative names of the model version. The aliases are optional. The aliases are unique for a model version. If the alias is already set to one model version, it cannot be set to another model version.- Specified by:
aliasesin interfaceModelVersion- Returns:
- The aliases of the model version.
-
uris
Description copied from interface:ModelVersionThe name and corresponding URI of the model artifact. The key is the name of the URI, and the value is the URI of the model artifact, which can be a file path or a remote URI.The "unknown" URI name is reserved for the compatibility with single URI.
- Specified by:
urisin interfaceModelVersion- Returns:
- The URIs of the model version, the key is the name of the URI and the value is the URI of the model artifact.
-
properties
Description copied from interface:ModelVersionThe properties of the model version. The properties are key-value pairs that can be used to store additional information of the model version. The properties are optional.- Specified by:
propertiesin interfaceModelVersion- Returns:
- the properties of the model version.
-
builder
Creates a new builder for constructing a Model Version DTO.- Returns:
- The builder.
-