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 java.lang.Object implements OpenLineage.Builder<OpenLineage.JobFacets>
builder class for JobFacets
-
-
Constructor Summary
Constructors Constructor Description JobFacetsBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenLineage.JobFacets
build()
build an instance of JobFacets from the fields set in the builderOpenLineage.JobFacetsBuilder
documentation(OpenLineage.DocumentationJobFacet documentation)
OpenLineage.JobFacetsBuilder
jobType(OpenLineage.JobTypeJobFacet jobType)
OpenLineage.JobFacetsBuilder
ownership(OpenLineage.OwnershipJobFacet ownership)
OpenLineage.JobFacetsBuilder
put(java.lang.String key, OpenLineage.JobFacet value)
add additional propertiesOpenLineage.JobFacetsBuilder
sourceCode(OpenLineage.SourceCodeJobFacet sourceCode)
OpenLineage.JobFacetsBuilder
sourceCodeLocation(OpenLineage.SourceCodeLocationJobFacet sourceCodeLocation)
OpenLineage.JobFacetsBuilder
sql(OpenLineage.SQLJobFacet sql)
-
-
-
Method Detail
-
jobType
public OpenLineage.JobFacetsBuilder jobType(OpenLineage.JobTypeJobFacet jobType)
- Parameters:
jobType
- the jobType- Returns:
- this
-
sourceCode
public OpenLineage.JobFacetsBuilder sourceCode(OpenLineage.SourceCodeJobFacet sourceCode)
- Parameters:
sourceCode
- the sourceCode- Returns:
- this
-
ownership
public OpenLineage.JobFacetsBuilder ownership(OpenLineage.OwnershipJobFacet ownership)
- Parameters:
ownership
- the ownership- Returns:
- this
-
sql
public OpenLineage.JobFacetsBuilder sql(OpenLineage.SQLJobFacet sql)
- Parameters:
sql
- the sql- Returns:
- this
-
sourceCodeLocation
public OpenLineage.JobFacetsBuilder sourceCodeLocation(OpenLineage.SourceCodeLocationJobFacet sourceCodeLocation)
- Parameters:
sourceCodeLocation
- the sourceCodeLocation- Returns:
- this
-
documentation
public OpenLineage.JobFacetsBuilder documentation(OpenLineage.DocumentationJobFacet documentation)
- Parameters:
documentation
- the documentation- Returns:
- this
-
put
public OpenLineage.JobFacetsBuilder put(java.lang.String key, OpenLineage.JobFacet value)
add additional properties- Parameters:
key
- the additional property namevalue
- the additional property value- Returns:
- this
-
build
public OpenLineage.JobFacets 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
-
-