public class MRL
extends java.lang.Object
MRL
(Machine learning Resource Locator) is a pointer to a Metadata
"resource"
on a machine learning Repository
.
Each mrl references a single metadata file (parsed to Metadata
and the collection of
artifacts located within it. Those artifacts all share the same groupId and artifactId, but can
differ based on the name and properties.
The mrl consists of three different properties:
Anchor
).
Modifier and Type | Method and Description |
---|---|
static MRL |
dataset(Application application,
java.lang.String groupId,
java.lang.String artifactId)
Creates a dataset
MRL with specified application. |
java.lang.String |
getArtifactId()
Returns the artifactId.
|
ai.djl.repository.Anchor |
getBaseAnchor()
Returns the base anchor.
|
java.lang.String |
getGroupId()
Returns the groupId.
|
static MRL |
model(Application application,
java.lang.String groupId,
java.lang.String artifactId)
Creates a model
MRL with specified application. |
void |
setArtifactId(java.lang.String artifactId)
Sets the artifactId.
|
void |
setBaseAnchor(ai.djl.repository.Anchor baseAnchor)
Sets the base anchor.
|
void |
setGroupId(java.lang.String groupId)
Sets the groupId.
|
java.lang.String |
toString() |
java.net.URI |
toURI()
Returns the URI to the metadata location (used for
Repository implementations). |
static MRL |
undefined(java.lang.String groupId,
java.lang.String artifactId)
Creates a dataset
MRL with specified application. |
public static MRL model(Application application, java.lang.String groupId, java.lang.String artifactId)
MRL
with specified application.application
- the desired applicationgroupId
- the desired groupIdartifactId
- the desired artifactIdMRL
public static MRL dataset(Application application, java.lang.String groupId, java.lang.String artifactId)
MRL
with specified application.application
- the desired applicationgroupId
- the desired groupIdartifactId
- the desired artifactIdMRL
public static MRL undefined(java.lang.String groupId, java.lang.String artifactId)
MRL
with specified application.groupId
- the desired groupIdartifactId
- the desired artifactIdMRL
public java.net.URI toURI()
Repository
implementations).public ai.djl.repository.Anchor getBaseAnchor()
public void setBaseAnchor(ai.djl.repository.Anchor baseAnchor)
baseAnchor
- the new base anchorpublic java.lang.String getGroupId()
public void setGroupId(java.lang.String groupId)
groupId
- the new groupIdpublic java.lang.String getArtifactId()
public void setArtifactId(java.lang.String artifactId)
artifactId
- the new artifactIdpublic java.lang.String toString()
toString
in class java.lang.Object