Package io.openlineage.client
Class OpenLineage.JobFacetsBuilder
java.lang.Object
io.openlineage.client.OpenLineage.JobFacetsBuilder
- All Implemented Interfaces:
OpenLineage.Builder<OpenLineage.JobFacets>
- Enclosing class:
- OpenLineage
public static final class OpenLineage.JobFacetsBuilder
extends Object
implements OpenLineage.Builder<OpenLineage.JobFacets>
builder class for JobFacets
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
build an instance of JobFacets from the fields set in the builderdocumentation
(OpenLineage.DocumentationJobFacet documentation) gcp_lineage
(OpenLineage.GcpLineageJobFacet gcp_lineage) jobType
(OpenLineage.JobTypeJobFacet jobType) ownership
(OpenLineage.OwnershipJobFacet ownership) put
(String key, OpenLineage.JobFacet value) add additional propertiessourceCode
(OpenLineage.SourceCodeJobFacet sourceCode) sourceCodeLocation
(OpenLineage.SourceCodeLocationJobFacet sourceCodeLocation)
-
Constructor Details
-
JobFacetsBuilder
public JobFacetsBuilder()
-
-
Method Details
-
jobType
- Parameters:
jobType
- the jobType- Returns:
- this
-
sourceCode
- Parameters:
sourceCode
- the sourceCode- Returns:
- this
-
gcp_lineage
- Parameters:
gcp_lineage
- the gcp_lineage- Returns:
- this
-
sql
- Parameters:
sql
- the sql- Returns:
- this
-
ownership
- Parameters:
ownership
- the ownership- Returns:
- this
-
sourceCodeLocation
public OpenLineage.JobFacetsBuilder sourceCodeLocation(OpenLineage.SourceCodeLocationJobFacet sourceCodeLocation) - Parameters:
sourceCodeLocation
- the sourceCodeLocation- Returns:
- this
-
documentation
- Parameters:
documentation
- the documentation- Returns:
- this
-
put
add additional properties- Parameters:
key
- the additional property namevalue
- the additional property value- Returns:
- this
-
build
build an instance of JobFacets from the fields set in the builder- Specified by:
build
in interfaceOpenLineage.Builder<OpenLineage.JobFacets>
- Returns:
- the constructed type
-