Class OpenLineageDataQualityAssertionsInputDataSetFacetAssertions
java.lang.Object
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageDataQualityAssertionsInputDataSetFacetAssertions
This class represents a single data quality assertion evaluated against an input dataset.
It is part of the OpenLineage spec.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare 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.getName()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.inthashCode()Return hash code based on properties.booleanReturn the whether the assertion succeeded.voidSet up the actual value observed, serialized as a string.voidsetAssertion(String assertion) Set up the type of expectation test that the column is subjected to, for example not_null or unique.voidSet up the column that the assertion applies to, if it is column-level rather than dataset-level.voidsetContent(String content) Set up the assertion body, for example a SQL query or expression.voidsetContentType(String contentType) Set up the format of the content field, for example text/x-sql.voidsetDescription(String description) Set up the human-readable description of what the assertion checks.voidsetExpected(String expected) Set up the expected value or threshold, serialized as a string.voidSet up the name identifying the assertion.voidSet up the arbitrary key-value pairs giving check-specific inputs.voidsetSeverity(String severity) Set up the configured consequence of the assertion failing, for example error or warn.voidsetSuccess(boolean success) Set up the whether the assertion succeeded.toString()Standard toString method.
-
Constructor Details
-
OpenLineageDataQualityAssertionsInputDataSetFacetAssertions
public OpenLineageDataQualityAssertionsInputDataSetFacetAssertions()Default constructor
-
-
Method Details
-
getAssertion
Return the type of expectation test that the column is subjected to, for example not_null or unique.- Returns:
- string
-
setAssertion
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
Return the column that the assertion applies to, if it is column-level rather than dataset-level.- Returns:
- string
-
setColumn
Set up the column that the assertion applies to, if it is column-level rather than dataset-level.- Parameters:
column- string
-
getSeverity
Return the configured consequence of the assertion failing, for example error or warn.- Returns:
- string
-
setSeverity
Set up the configured consequence of the assertion failing, for example error or warn.- Parameters:
severity- string
-
getName
Return the name identifying the assertion.- Returns:
- string
-
setName
Set up the name identifying the assertion.- Parameters:
name- string
-
getDescription
Return the human-readable description of what the assertion checks.- Returns:
- string
-
setDescription
Set up the human-readable description of what the assertion checks.- Parameters:
description- string
-
getExpected
Return the expected value or threshold, serialized as a string.- Returns:
- string
-
setExpected
Set up the expected value or threshold, serialized as a string.- Parameters:
expected- string
-
getActual
Return the actual value observed, serialized as a string.- Returns:
- string
-
setActual
Set up the actual value observed, serialized as a string.- Parameters:
actual- string
-
getContent
Return the assertion body, for example a SQL query or expression.- Returns:
- string
-
setContent
Set up the assertion body, for example a SQL query or expression.- Parameters:
content- string
-
getContentType
Return the format of the content field, for example text/x-sql.- Returns:
- string
-
setContentType
Set up the format of the content field, for example text/x-sql.- Parameters:
contentType- string
-
getParams
Return the arbitrary key-value pairs giving check-specific inputs.- Returns:
- map
-
setParams
Set up the arbitrary key-value pairs giving check-specific inputs.- Parameters:
params- map
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Return hash code based on properties.
-