Class OpenLineageLineageEntry

java.lang.Object
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageLineageEntry

public class OpenLineageLineageEntry extends Object
This class represents a target entity (dataset or job) and the sources that feed it, from the lineage job facet. The type field says whether it is a DATASET or a JOB. It is part of the OpenLineage spec.
  • Constructor Details

    • OpenLineageLineageEntry

      public OpenLineageLineageEntry()
      Default constructor
  • Method Details

    • getType

      public String getType()
      Return the target entity type: DATASET or JOB.
      Returns:
      string
    • setType

      public void setType(String type)
      Set up the target entity type: DATASET or JOB.
      Parameters:
      type - string
    • getNamespace

      public String getNamespace()
      Return the namespace of the target dataset or job. For a job it may be omitted, together with name, to refer to the event's own job.
      Returns:
      string
    • setNamespace

      public void setNamespace(String namespace)
      Set up the namespace of the target dataset or job. For a job it may be omitted, together with name, to refer to the event's own job.
      Parameters:
      namespace - string
    • getName

      public String getName()
      Return the name of the target dataset or job.
      Returns:
      string
    • setName

      public void setName(String name)
      Set up the name of the target dataset or job.
      Parameters:
      name - string
    • getRunId

      public UUID getRunId()
      Return the target job run when the relationship is tied to a specific execution (jobs only).
      Returns:
      uuid
    • setRunId

      public void setRunId(UUID runId)
      Set up the target job run when the relationship is tied to a specific execution (jobs only).
      Parameters:
      runId - uuid
    • getInputs

      public List<OpenLineageLineageInput> getInputs()
      Return the entity-level inputs feeding this target. An empty list explicitly means the target has no tracked inputs.
      Returns:
      list
    • setInputs

      public void setInputs(List<OpenLineageLineageInput> inputs)
      Set up the entity-level inputs feeding this target. An empty list explicitly means the target has no tracked inputs.
      Parameters:
      inputs - list
    • getFields

      Return the field-level lineage: maps target field names to their source inputs (datasets only).
      Returns:
      map
    • setFields

      public void setFields(Map<String,OpenLineageLineageFieldEntry> fields)
      Set up the field-level lineage: maps target field names to their source inputs (datasets only).
      Parameters:
      fields - map
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      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 Object
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

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