Class OpenLineageLineageInput

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

public class OpenLineageLineageInput extends Object
This class represents a source entity (dataset, dataset field or job) feeding a target in the lineage facets. The type field says whether it is a DATASET or a JOB. It is part of the OpenLineage spec.
  • Constructor Details

    • OpenLineageLineageInput

      public OpenLineageLineageInput()
      Default constructor
  • Method Details

    • getType

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

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

      public String getNamespace()
      Return the namespace of the source 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 source 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 source dataset or job.
      Returns:
      string
    • setName

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

      public String getField()
      Return the source field (datasets only). At entity level it represents a dataset-wide dependency; at field level it identifies the source field.
      Returns:
      string
    • setField

      public void setField(String field)
      Set up the source field (datasets only). At entity level it represents a dataset-wide dependency; at field level it identifies the source field.
      Parameters:
      field - string
    • getRunId

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

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

      public List<OpenLineageLineageTransformation> getTransformations()
      Return the transformations applied to the source data.
      Returns:
      list
    • setTransformations

      public void setTransformations(List<OpenLineageLineageTransformation> transformations)
      Set up the transformations applied to the source data.
      Parameters:
      transformations - list
    • 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