open-lineage-client
Version:
TypeScript/JavaScript client for creating and sending OpenLineage standard events.
35 lines (34 loc) • 964 B
TypeScript
import { Dataset } from '../entities/Dataset.js';
import { DatasetFacets } from '../facets/DatasetFacets.js';
/**
* Builder for creating Dataset instances.
*/
export declare class DatasetBuilder {
private name;
private namespace;
private facets;
/**
* Sets the name of the dataset.
* @param name - The name of the dataset.
* @returns {DatasetBuilder}
*/
setName(name: string): this;
/**
* Sets the namespace of the dataset.
* @param namespace - The namespace of the dataset.
* @returns {DatasetBuilder}
*/
setNamespace(namespace: string): this;
/**
* Sets the facets of the dataset.
* @param facets - The facets of the dataset.
* @returns {DatasetBuilder}
*/
setFacets(facets: DatasetFacets): this;
/**
* Builds and returns a Dataset instance.
* @returns {Dataset}
* @throws {Error} If required fields are missing.
*/
build(): Dataset;
}