Class OpenLineageFacet
- java.lang.Object
-
- org.odpi.openmetadata.integrationservices.lineage.properties.OpenLineageFacet
-
- Direct Known Subclasses:
OpenLineageDataSetFacet,OpenLineageDataSourceDataSetFacet,OpenLineageInputDataSetInputFacet,OpenLineageJobFacet,OpenLineageOutputDataSetOutputFacet
public abstract class OpenLineageFacet extends Object
This class represents the Common header for facets in the open lineage standard spec https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json.
-
-
Constructor Summary
Constructors Constructor Description OpenLineageFacet(URI schemaURL)Subclass constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.URIget_producer()Return the URI identifying the producer of this metadata.URIget_schemaURL()Return the JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version of the schema definition for this facet.Map<String,Object>getAdditionalProperties()Return a map of additional custom facets.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 a map of additional custom facets.StringtoString()Standard toString method.
-
-
-
Constructor Detail
-
OpenLineageFacet
public OpenLineageFacet(URI schemaURL)
Subclass constructor- Parameters:
schemaURL- default value for schemaURL
-
-
Method Detail
-
get_producer
public URI 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
public void set_producer(URI 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
public 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
public void set_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.- Parameters:
schemaURL- uri
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
Return a map of additional custom facets. The name is the identifier of the facet type and the object is the facet itself.- Returns:
- custom facet map (map from string to object)
-
setAdditionalProperties
public void setAdditionalProperties(Map<String,Object> additionalProperties)
Set up a map of additional custom facets. The name is the identifier of the facet type and the object is the facet itself.- Parameters:
additionalProperties- custom facet map (map from string to object)
-
toString
public String toString()
Standard toString method.
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.
-
-