Package org.apache.gravitino.dto.model
Class ModelDTO
java.lang.Object
org.apache.gravitino.dto.model.ModelDTO
Represents a model DTO (Data Transfer Object).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for constructing a Model DTO. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelDTO.Builderbuilder()Creates a new builder for constructing a Model DTO.comment()The comment of the model object.intThe latest version of the model object.name()The properties of the 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.Model
supportsPolicies, supportsRoles, supportsTags
-
Constructor Details
-
ModelDTO
public ModelDTO()
-
-
Method Details
-
name
-
comment
Description copied from interface:ModelThe comment of the model object. This is the general description of the model object. User can still add more detailed information in the model version. -
properties
Description copied from interface:ModelThe properties of the model object. The properties are key-value pairs that can be used to store additional information of the model object. The properties are optional.Users can still specify the properties in the model version for different information.
- Specified by:
propertiesin interfaceModel- Returns:
- the properties of the model object.
-
latestVersion
public int latestVersion()Description copied from interface:ModelThe latest version of the model object. The latest version is the version number of the latest model checkpoint / snapshot that is linked to the registered model.- Specified by:
latestVersionin interfaceModel- Returns:
- The latest version of the model object.
-
auditInfo
-
builder
Creates a new builder for constructing a Model DTO.- Returns:
- The builder.
-