Class ModelVersionDTO

java.lang.Object
org.apache.gravitino.dto.model.ModelVersionDTO
All Implemented Interfaces:
Auditable, ModelVersion

public class ModelVersionDTO extends Object implements ModelVersion
Represents a model version DTO (Data Transfer Object).
  • Constructor Details

    • ModelVersionDTO

      public ModelVersionDTO()
  • Method Details

    • auditInfo

      public Audit auditInfo()
      Specified by:
      auditInfo in interface Auditable
      Returns:
      The audit information of the entity.
    • 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 interface ModelVersion
      Returns:
      The version of the model object.
    • comment

      public String 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 interface ModelVersion
      Returns:
      The comment of the model version. Null is returned if no comment is set.
    • aliases

      public String[] 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 interface ModelVersion
      Returns:
      The aliases of the model version.
    • uris

      public Map<String,String> 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 interface ModelVersion
      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

      public Map<String,String> 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 interface ModelVersion
      Returns:
      the properties of the model version.
    • builder

      public static ModelVersionDTO.Builder builder()
      Creates a new builder for constructing a Model Version DTO.
      Returns:
      The builder.