Class OpenLineageTestRunFacetTestExecution
java.lang.Object
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageTestRunFacetTestExecution
This class represents the outcome of a single test executed during a run.
It is part of the OpenLineage spec.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare 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.getName()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.getType()Return the classification of the test, for example not_null, unique, row_count, freshness or custom_sql.inthashCode()Return hash code based on properties.voidSet up the actual value observed during the test, serialized as a string.voidsetContent(String content) Set up the test 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 test checks.voidsetExpected(String expected) Set up the expected value or threshold for the test, serialized as a string.voidSet up the name identifying the test.voidSet up the arbitrary key-value pairs giving check-specific inputs.voidsetSeverity(String severity) Set up the configured consequence of a test failure: error or warn.voidSet up the outcome of the test: pass, fail or skip.voidSet up the classification of the test, for example not_null, unique, row_count, freshness or custom_sql.toString()Standard toString method.
-
Constructor Details
-
OpenLineageTestRunFacetTestExecution
public OpenLineageTestRunFacetTestExecution()Default constructor
-
-
Method Details
-
getName
Return the name identifying the test.- Returns:
- string
-
setName
Set up the name identifying the test.- Parameters:
name- string
-
getStatus
Return the outcome of the test: pass, fail or skip.- Returns:
- string
-
setStatus
Set up the outcome of the test: pass, fail or skip.- Parameters:
status- string
-
getSeverity
Return the configured consequence of a test failure: error or warn.- Returns:
- string
-
setSeverity
Set up the configured consequence of a test failure: error or warn.- Parameters:
severity- string
-
getType
Return the classification of the test, for example not_null, unique, row_count, freshness or custom_sql.- Returns:
- string
-
setType
Set up the classification of the test, for example not_null, unique, row_count, freshness or custom_sql.- Parameters:
type- string
-
getDescription
Return the human-readable description of what the test checks.- Returns:
- string
-
setDescription
Set up the human-readable description of what the test checks.- Parameters:
description- string
-
getExpected
Return the expected value or threshold for the test, serialized as a string.- Returns:
- string
-
setExpected
Set up the expected value or threshold for the test, serialized as a string.- Parameters:
expected- string
-
getActual
Return the actual value observed during the test, serialized as a string.- Returns:
- string
-
setActual
Set up the actual value observed during the test, serialized as a string.- Parameters:
actual- string
-
getContent
Return the test body, for example a SQL query or expression.- Returns:
- string
-
setContent
Set up the test 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.
-