Class OpenLineageDataSourceDataSetFacet


public class OpenLineageDataSourceDataSetFacet extends OpenLineageDataSetFacet
This class represents the dataSource dataset facet. It identifies the data source that hosts the dataset. It follows the OpenLineage facet spec https://openlineage.io/spec/facets/1-0-1/DatasourceDatasetFacet.json#/$defs/DatasourceDatasetFacet.
  • Constructor Details

    • OpenLineageDataSourceDataSetFacet

      public OpenLineageDataSourceDataSetFacet()
      Default constructor
  • Method Details

    • getName

      public String getName()
      Return the name of the data source.
      Returns:
      string
    • setName

      public void setName(String name)
      Set up the name of the data source.
      Parameters:
      name - string
    • getUri

      public URI getUri()
      Return the URI to connect to the data source.
      Returns:
      uri
    • setUri

      public void setUri(URI uri)
      Set up the URI to connect to the data source.
      Parameters:
      uri - uri
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class OpenLineageDataSetFacet
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class OpenLineageDataSetFacet
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code based on properties.
      Overrides:
      hashCode in class OpenLineageDataSetFacet
      Returns:
      int