Class OpenLineageDataQualityAssertionsInputDataSetFacetAssertions

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

public class OpenLineageDataQualityAssertionsInputDataSetFacetAssertions extends Object
This class represents a single data quality assertion evaluated against an input dataset. 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, serialized as a string.
    Return the type of expectation test that the column is subjected to, for example not_null or unique.
    Return the column that the assertion applies to, if it is column-level rather than dataset-level.
    Return the assertion 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 assertion checks.
    Return the expected value or threshold, serialized as a string.
    Return the name identifying the assertion.
    Return the arbitrary key-value pairs giving check-specific inputs.
    Return the configured consequence of the assertion failing, for example error or warn.
    int
    Return hash code based on properties.
    boolean
    Return the whether the assertion succeeded.
    void
    setActual(String actual)
    Set up the actual value observed, serialized as a string.
    void
    setAssertion(String assertion)
    Set up the type of expectation test that the column is subjected to, for example not_null or unique.
    void
    setColumn(String column)
    Set up the column that the assertion applies to, if it is column-level rather than dataset-level.
    void
    setContent(String content)
    Set up the assertion 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 assertion checks.
    void
    setExpected(String expected)
    Set up the expected value or threshold, serialized as a string.
    void
    Set up the name identifying the assertion.
    void
    Set up the arbitrary key-value pairs giving check-specific inputs.
    void
    setSeverity(String severity)
    Set up the configured consequence of the assertion failing, for example error or warn.
    void
    setSuccess(boolean success)
    Set up the whether the assertion succeeded.
    Standard toString method.

    Methods inherited from class java.lang.Object

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

    • OpenLineageDataQualityAssertionsInputDataSetFacetAssertions

      public OpenLineageDataQualityAssertionsInputDataSetFacetAssertions()
      Default constructor
  • Method Details

    • getAssertion

      public String getAssertion()
      Return the type of expectation test that the column is subjected to, for example not_null or unique.
      Returns:
      string
    • setAssertion

      public void setAssertion(String assertion)
      Set up the type of expectation test that the column is subjected to, for example not_null or unique.
      Parameters:
      assertion - string
    • isSuccess

      public boolean isSuccess()
      Return the whether the assertion succeeded.
      Returns:
      boolean
    • setSuccess

      public void setSuccess(boolean success)
      Set up the whether the assertion succeeded.
      Parameters:
      success - boolean
    • getColumn

      public String getColumn()
      Return the column that the assertion applies to, if it is column-level rather than dataset-level.
      Returns:
      string
    • setColumn

      public void setColumn(String column)
      Set up the column that the assertion applies to, if it is column-level rather than dataset-level.
      Parameters:
      column - string
    • getSeverity

      public String getSeverity()
      Return the configured consequence of the assertion failing, for example error or warn.
      Returns:
      string
    • setSeverity

      public void setSeverity(String severity)
      Set up the configured consequence of the assertion failing, for example error or warn.
      Parameters:
      severity - string
    • getName

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

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

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

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

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

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

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

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

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

      public void setContent(String content)
      Set up the assertion 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