Class OpenLineageHierarchyDataSetFacet


public class OpenLineageHierarchyDataSetFacet extends OpenLineageDataSetFacet
This class represents the hierarchy dataset facet. It describes the containment hierarchy of the dataset from the highest level to the lowest, for example DATABASE, SCHEMA, TABLE. It follows the OpenLineage facet spec https://openlineage.io/spec/facets/1-0-0/HierarchyDatasetFacet.json#/$defs/HierarchyDatasetFacet.
  • Constructor Details

    • OpenLineageHierarchyDataSetFacet

      public OpenLineageHierarchyDataSetFacet()
      Default constructor
  • Method Details

    • getHierarchy

      Return the dataset hierarchy levels, from highest to lowest level.
      Returns:
      list
    • setHierarchy

      public void setHierarchy(List<OpenLineageHierarchyDataSetFacetLevel> hierarchy)
      Set up the dataset hierarchy levels, from highest to lowest level.
      Parameters:
      hierarchy - list
    • 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