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 class
Builder 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.Builder
builder()
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.int
version()
The version of this model object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:ModelVersion
The 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:
version
in interfaceModelVersion
- Returns:
- The version of the model object.
-
comment
Description copied from interface:ModelVersion
The 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:
comment
in interfaceModelVersion
- Returns:
- The comment of the model version. Null is returned if no comment is set.
-
aliases
Description copied from interface:ModelVersion
The 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:
aliases
in interfaceModelVersion
- Returns:
- The aliases of the model version.
-
uris
Description copied from interface:ModelVersion
The 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:
uris
in 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:ModelVersion
The 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:
properties
in interfaceModelVersion
- Returns:
- the properties of the model version.
-
builder
Creates a new builder for constructing a Model Version DTO.- Returns:
- The builder.
-