Class OpenLineageFacet
java.lang.Object
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageFacet
- Direct Known Subclasses:
OpenLineageDataSetFacet,OpenLineageInputDataSetInputFacet,OpenLineageJobFacet,OpenLineageOutputDataSetOutputFacet,OpenLineageRunFacet
This class represents the common header for facets in the OpenLineage standard spec
https://openlineage.io/spec/2-0-2/OpenLineage.json#/$defs/BaseFacet. Every facet carries the URI of the producer that
created it and the URL of the schema that describes it. Any properties in the JSON that are not modelled by the
subclass are held in additionalProperties so they survive a round trip through these beans.
-
Constructor Summary
ConstructorsConstructorDescriptionOpenLineageFacet(URI schemaURL) Constructor that sets up the schema URL for the facet. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the URI identifying the producer of this metadata.Return the JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version of the schema definition for this facet.Return any properties of the facet that are not modelled by the bean.inthashCode()Return hash code based on properties.voidset_producer(URI producer) Set up the URI identifying the producer of this metadata.voidset_schemaURL(URI schemaURL) Set up the JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version of the schema definition for this facet.voidsetAdditionalProperties(Map<String, Object> additionalProperties) Set up any properties of the facet that are not modelled by the bean.voidsetAdditionalProperty(String propertyName, Object propertyValue) Add a property that is not modelled by the bean.toString()Standard toString method.
-
Constructor Details
-
OpenLineageFacet
Constructor that sets up the schema URL for the facet.- Parameters:
schemaURL- URL of the JSON schema that describes this facet
-
-
Method Details
-
get_producer
Return the URI identifying the producer of this metadata. For example this could be a git url with a given tag or sha.- Returns:
- URI
-
set_producer
Set up the URI identifying the producer of this metadata. For example this could be a git url with a given tag or sha.- Parameters:
producer- URI
-
get_schemaURL
Return the JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version of the schema definition for this facet.- Returns:
- URI
-
set_schemaURL
Set up the JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version of the schema definition for this facet.- Parameters:
schemaURL- URI
-
getAdditionalProperties
Return any properties of the facet that are not modelled by the bean. They are serialized as top-level properties of the facet alongside the modelled properties.- Returns:
- map of property name to value
-
setAdditionalProperties
Set up any properties of the facet that are not modelled by the bean.- Parameters:
additionalProperties- map of property name to value
-
setAdditionalProperty
Add a property that is not modelled by the bean. Jackson calls this for each unrecognized property found in the JSON.- Parameters:
propertyName- name of the propertypropertyValue- value of the property
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Return hash code based on properties.
-