Package io.openlineage.client
Class OpenLineage.DataQualityAssertionsDatasetFacetAssertionsBuilder
java.lang.Object
io.openlineage.client.OpenLineage.DataQualityAssertionsDatasetFacetAssertionsBuilder
- All Implemented Interfaces:
OpenLineage.Builder<OpenLineage.DataQualityAssertionsDatasetFacetAssertions>
- Enclosing class:
- OpenLineage
public static final class OpenLineage.DataQualityAssertionsDatasetFacetAssertionsBuilder
extends Object
implements OpenLineage.Builder<OpenLineage.DataQualityAssertionsDatasetFacetAssertions>
builder class for DataQualityAssertionsDatasetFacetAssertions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()build an instance of DataQualityAssertionsDatasetFacetAssertions from the fields set in the buildercontentType(String contentType) description(String description)
-
Constructor Details
-
DataQualityAssertionsDatasetFacetAssertionsBuilder
public DataQualityAssertionsDatasetFacetAssertionsBuilder()
-
-
Method Details
-
assertion
- Parameters:
assertion- Classification of the test, e.g. 'not_null', 'unique', 'row_count', 'freshness', 'custom_sql'.- Returns:
- this
-
success
- Parameters:
success- Whether the test found issues: 'true' (no issues found), 'false' (issues found). Independent of severity - a test can fail without blocking the pipeline when severity is 'warn'.- Returns:
- this
-
column
- Parameters:
column- Column that test refers to. It should match the name provided in SchemaDatasetFacet. If column field is empty, then test refers to whole dataset.- Returns:
- this
-
severity
- Parameters:
severity- The configured severity level of the assertion. Common values are 'error' (test failure blocks pipeline) or 'warn' (test failure produces warning only).- Returns:
- this
-
name
- Parameters:
name- Name identifying the test.- Returns:
- this
-
description
public OpenLineage.DataQualityAssertionsDatasetFacetAssertionsBuilder description(String description) - Parameters:
description- Human-readable description of what the assertion checks.- Returns:
- this
-
expected
- Parameters:
expected- The expected value or threshold for the assertion, serialized as a string.- Returns:
- this
-
actual
- Parameters:
actual- The actual value observed during the assertion, serialized as a string.- Returns:
- this
-
content
- Parameters:
content- The assertion body, e.g. a SQL query or expression.- Returns:
- this
-
contentType
public OpenLineage.DataQualityAssertionsDatasetFacetAssertionsBuilder contentType(String contentType) - Parameters:
contentType- The format of the content field, allowing consumers to interpret or filter assertion content. Common values include 'sql', 'json', 'expression'.- Returns:
- this
-
params
public OpenLineage.DataQualityAssertionsDatasetFacetAssertionsBuilder params(OpenLineage.DataQualityAssertionsDatasetFacetAssertionsParams params) - Parameters:
params- Arbitrary key-value pairs for assertion-specific inputs.- Returns:
- this
-
build
build an instance of DataQualityAssertionsDatasetFacetAssertions from the fields set in the builder- Specified by:
buildin interfaceOpenLineage.Builder<OpenLineage.DataQualityAssertionsDatasetFacetAssertions>- Returns:
- the constructed type
-