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 class
Builder for constructing a Model DTO. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelDTO.Builder
builder()
Creates a new builder for constructing a Model DTO.comment()
The comment of the model object.int
The 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, wait
Methods inherited from interface org.apache.gravitino.model.Model
supportsPolicies, supportsRoles, supportsTags
-
Constructor Details
-
ModelDTO
public ModelDTO()
-
-
Method Details
-
name
-
comment
Description copied from interface:Model
The 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:Model
The 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:
properties
in interfaceModel
- Returns:
- the properties of the model object.
-
latestVersion
public int latestVersion()Description copied from interface:Model
The 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:
latestVersion
in interfaceModel
- Returns:
- The latest version of the model object.
-
auditInfo
-
builder
Creates a new builder for constructing a Model DTO.- Returns:
- The builder.
-