Class OpenLineageTestRunFacetTestExecution

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

public class OpenLineageTestRunFacetTestExecution extends Object
This class represents the outcome of a single test executed during a run. It is part of the OpenLineage spec.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object objectToCompare)
    Compare the values of the supplied object with those stored in the current object.
    Return the actual value observed during the test, serialized as a string.
    Return the test body, for example a SQL query or expression.
    Return the format of the content field, for example text/x-sql.
    Return the human-readable description of what the test checks.
    Return the expected value or threshold for the test, serialized as a string.
    Return the name identifying the test.
    Return the arbitrary key-value pairs giving check-specific inputs.
    Return the configured consequence of a test failure: error or warn.
    Return the outcome of the test: pass, fail or skip.
    Return the classification of the test, for example not_null, unique, row_count, freshness or custom_sql.
    int
    Return hash code based on properties.
    void
    setActual(String actual)
    Set up the actual value observed during the test, serialized as a string.
    void
    setContent(String content)
    Set up the test body, for example a SQL query or expression.
    void
    setContentType(String contentType)
    Set up the format of the content field, for example text/x-sql.
    void
    setDescription(String description)
    Set up the human-readable description of what the test checks.
    void
    setExpected(String expected)
    Set up the expected value or threshold for the test, serialized as a string.
    void
    Set up the name identifying the test.
    void
    Set up the arbitrary key-value pairs giving check-specific inputs.
    void
    setSeverity(String severity)
    Set up the configured consequence of a test failure: error or warn.
    void
    setStatus(String status)
    Set up the outcome of the test: pass, fail or skip.
    void
    Set up the classification of the test, for example not_null, unique, row_count, freshness or custom_sql.
    Standard toString method.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • OpenLineageTestRunFacetTestExecution

      public OpenLineageTestRunFacetTestExecution()
      Default constructor
  • Method Details

    • getName

      public String getName()
      Return the name identifying the test.
      Returns:
      string
    • setName

      public void setName(String name)
      Set up the name identifying the test.
      Parameters:
      name - string
    • getStatus

      public String getStatus()
      Return the outcome of the test: pass, fail or skip.
      Returns:
      string
    • setStatus

      public void setStatus(String status)
      Set up the outcome of the test: pass, fail or skip.
      Parameters:
      status - string
    • getSeverity

      public String getSeverity()
      Return the configured consequence of a test failure: error or warn.
      Returns:
      string
    • setSeverity

      public void setSeverity(String severity)
      Set up the configured consequence of a test failure: error or warn.
      Parameters:
      severity - string
    • getType

      public String getType()
      Return the classification of the test, for example not_null, unique, row_count, freshness or custom_sql.
      Returns:
      string
    • setType

      public void setType(String type)
      Set up the classification of the test, for example not_null, unique, row_count, freshness or custom_sql.
      Parameters:
      type - string
    • getDescription

      public String getDescription()
      Return the human-readable description of what the test checks.
      Returns:
      string
    • setDescription

      public void setDescription(String description)
      Set up the human-readable description of what the test checks.
      Parameters:
      description - string
    • getExpected

      public String getExpected()
      Return the expected value or threshold for the test, serialized as a string.
      Returns:
      string
    • setExpected

      public void setExpected(String expected)
      Set up the expected value or threshold for the test, serialized as a string.
      Parameters:
      expected - string
    • getActual

      public String getActual()
      Return the actual value observed during the test, serialized as a string.
      Returns:
      string
    • setActual

      public void setActual(String actual)
      Set up the actual value observed during the test, serialized as a string.
      Parameters:
      actual - string
    • getContent

      public String getContent()
      Return the test body, for example a SQL query or expression.
      Returns:
      string
    • setContent

      public void setContent(String content)
      Set up the test body, for example a SQL query or expression.
      Parameters:
      content - string
    • getContentType

      public String getContentType()
      Return the format of the content field, for example text/x-sql.
      Returns:
      string
    • setContentType

      public void setContentType(String contentType)
      Set up the format of the content field, for example text/x-sql.
      Parameters:
      contentType - string
    • getParams

      public Map<String,Object> getParams()
      Return the arbitrary key-value pairs giving check-specific inputs.
      Returns:
      map
    • setParams

      public void setParams(Map<String,Object> params)
      Set up the arbitrary key-value pairs giving check-specific inputs.
      Parameters:
      params - 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