Class OpenLineageSQLJobFacet
java.lang.Object
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageFacet
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageJobFacet
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageSQLJobFacet
This class represents the sql job facet. It captures the SQL query executed by the job.
It follows the OpenLineage facet spec https://openlineage.io/spec/facets/1-1-0/SQLJobFacet.json#/$defs/SQLJobFacet.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the SQL dialect of the query.getQuery()Return the SQL query.inthashCode()Return hash code based on properties.voidsetDialect(String dialect) Set up the SQL dialect of the query.voidSet up the SQL query.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
-
OpenLineageSQLJobFacet
public OpenLineageSQLJobFacet()Default constructor
-
-
Method Details
-
getQuery
Return the SQL query.- Returns:
- string
-
setQuery
Set up the SQL query.- Parameters:
query- string
-
getDialect
Return the SQL dialect of the query.- Returns:
- string
-
setDialect
Set up the SQL dialect of the query.- Parameters:
dialect- 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
-