Class OpenLineageSourceCodeJobFacet
java.lang.Object
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageFacet
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageJobFacet
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageSourceCodeJobFacet
This class represents the sourceCode job facet. It captures the source code of the job.
It follows the OpenLineage facet spec https://openlineage.io/spec/facets/1-0-1/SourceCodeJobFacet.json#/$defs/SourceCodeJobFacet.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the language in which the source code of the job was written.Return the source code of the job.inthashCode()Return hash code based on properties.voidsetLanguage(String language) Set up the language in which the source code of the job was written.voidsetSourceCode(String sourceCode) Set up the source code of the job.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
-
OpenLineageSourceCodeJobFacet
public OpenLineageSourceCodeJobFacet()Default constructor
-
-
Method Details
-
getLanguage
Return the language in which the source code of the job was written.- Returns:
- string
-
setLanguage
Set up the language in which the source code of the job was written.- Parameters:
language- string
-
getSourceCode
Return the source code of the job.- Returns:
- string
-
setSourceCode
Set up the source code of the job.- Parameters:
sourceCode- 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
-