UNPKG

open-lineage-client

Version:

TypeScript/JavaScript client for creating and sending OpenLineage standard events.

40 lines 1.13 kB
import { JobFacets, } from '../facets/JobFacets.js'; // JobFacetsBuilder class export class JobFacetsBuilder { constructor() { this._documentation = null; this._ownership = null; this._sourceCode = null; this._sourceCodeLocation = null; this._sql = null; this._jobType = null; } setDocumentation(documentation) { this._documentation = documentation; return this; } setOwnership(ownership) { this._ownership = ownership; return this; } setSourceCode(sourceCode) { this._sourceCode = sourceCode; return this; } setSourceCodeLocation(sourceCodeLocation) { this._sourceCodeLocation = sourceCodeLocation; return this; } setSql(sql) { this._sql = sql; return this; } setJobType(jobType) { this._jobType = jobType; return this; } build() { return new JobFacets(this._documentation, this._ownership, this._sourceCode, this._sourceCodeLocation, this._sql, this._jobType); } } //# sourceMappingURL=JobFacetsBuilder.js.map