Package io.openlineage.client
Class OpenLineage.TestExecutionBuilder
java.lang.Object
io.openlineage.client.OpenLineage.TestExecutionBuilder
- All Implemented Interfaces:
OpenLineage.Builder<OpenLineage.TestExecution>
- Enclosing class:
- OpenLineage
public static final class OpenLineage.TestExecutionBuilder
extends Object
implements OpenLineage.Builder<OpenLineage.TestExecution>
builder class for TestExecution
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()build an instance of TestExecution from the fields set in the buildercontentType(String contentType) description(String description)
-
Constructor Details
-
TestExecutionBuilder
public TestExecutionBuilder()
-
-
Method Details
-
name
- Parameters:
name- Name identifying the test.- Returns:
- this
-
status
- Parameters:
status- Whether the test found issues: 'pass' (no issues found), 'fail' (issues found), 'skip' (not executed). Independent of severity — a test can fail without blocking the pipeline when severity is 'warn'.- Returns:
- this
-
severity
- Parameters:
severity- The configured consequence of a test failure: 'error' (blocks pipeline execution) or 'warn' (produces a warning only, does not block). A test with severity 'warn' and status 'fail' means issues were found but execution continued.- Returns:
- this
-
type
- Parameters:
type- Classification of the test, e.g. 'not_null', 'unique', 'row_count', 'freshness', 'custom_sql'.- Returns:
- this
-
description
- Parameters:
description- Human-readable description of what the test checks.- Returns:
- this
-
expected
- Parameters:
expected- The expected value or threshold for the test, serialized as a string.- Returns:
- this
-
actual
- Parameters:
actual- The actual value observed during the test, serialized as a string.- Returns:
- this
-
content
- Parameters:
content- The test body, e.g. a SQL query or expression.- Returns:
- this
-
contentType
- Parameters:
contentType- The format of the content field, allowing consumers to interpret or filter test content. Common values include 'sql', 'json', 'expression'.- Returns:
- this
-
params
- Parameters:
params- Arbitrary key-value pairs for check-specific inputs.- Returns:
- this
-
build
build an instance of TestExecution from the fields set in the builder- Specified by:
buildin interfaceOpenLineage.Builder<OpenLineage.TestExecution>- Returns:
- the constructed type
-