Class OpenLineageSourceCodeLocationJobFacet
java.lang.Object
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageFacet
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageJobFacet
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageSourceCodeLocationJobFacet
This class represents the sourceCodeLocation job facet. It identifies where the source code for the job is held in source control.
It follows the OpenLineage facet spec https://openlineage.io/spec/facets/1-1-0/SourceCodeLocationJobFacet.json#/$defs/SourceCodeLocationJobFacet.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the optional branch name.getPath()Return the path in the repository containing the source files.Return the optional pull request or merge request number associated with a CI run.Return the URL to the repository.getTag()Return the optional tag name.getType()Return the source control system, for example git or svn.getUrl()Return the full http URL to locate the file.Return the current version deployed (not a branch name, the actual unique version).inthashCode()Return hash code based on properties.voidSet up the optional branch name.voidSet up the path in the repository containing the source files.voidsetPullRequestNumber(String pullRequestNumber) Set up the optional pull request or merge request number associated with a CI run.voidsetRepoUrl(String repoUrl) Set up the URL to the repository.voidSet up the optional tag name.voidSet up the source control system, for example git or svn.voidSet up the full http URL to locate the file.voidsetVersion(String version) Set up the current version deployed (not a branch name, the actual unique version).toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageJobFacet
get_deleted, set_deletedMethods inherited from class org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageFacet
get_producer, get_schemaURL, getAdditionalProperties, set_producer, set_schemaURL, setAdditionalProperties, setAdditionalProperty
-
Constructor Details
-
OpenLineageSourceCodeLocationJobFacet
public OpenLineageSourceCodeLocationJobFacet()Default constructor
-
-
Method Details
-
getType
Return the source control system, for example git or svn.- Returns:
- string
-
setType
Set up the source control system, for example git or svn.- Parameters:
type- string
-
getUrl
Return the full http URL to locate the file.- Returns:
- uri
-
setUrl
Set up the full http URL to locate the file.- Parameters:
url- uri
-
getRepoUrl
Return the URL to the repository.- Returns:
- string
-
setRepoUrl
Set up the URL to the repository.- Parameters:
repoUrl- string
-
getPath
Return the path in the repository containing the source files.- Returns:
- string
-
setPath
Set up the path in the repository containing the source files.- Parameters:
path- string
-
getVersion
Return the current version deployed (not a branch name, the actual unique version).- Returns:
- string
-
setVersion
Set up the current version deployed (not a branch name, the actual unique version).- Parameters:
version- string
-
getTag
Return the optional tag name.- Returns:
- string
-
setTag
Set up the optional tag name.- Parameters:
tag- string
-
getBranch
Return the optional branch name.- Returns:
- string
-
setBranch
Set up the optional branch name.- Parameters:
branch- string
-
getPullRequestNumber
Return the optional pull request or merge request number associated with a CI run.- Returns:
- string
-
setPullRequestNumber
Set up the optional pull request or merge request number associated with a CI run.- Parameters:
pullRequestNumber- string
-
toString
Standard toString method.- Overrides:
toStringin classOpenLineageJobFacet- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classOpenLineageJobFacet- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCodein classOpenLineageJobFacet- Returns:
- int
-