UNPKG

@jahed/sparql-engine

Version:

SPARQL query engine for servers and web browsers.

28 lines (24 loc) 771 B
// SPDX-License-Identifier: MIT import { PipelineEngine } from "./pipeline-engine.ts"; import VectorPipeline from "./vector-pipeline.ts"; // current pipeline engine used for processing bindings let _currentEngine: PipelineEngine = new VectorPipeline(); /** * Singleton class used to access the current pipeline engine */ export class Pipeline { /** * Get the instance of the current pipeline engine * @return The instance of the current pipeline engine */ static getInstance(): PipelineEngine { return _currentEngine; } /** * Set the instance of the current pipeline engine * @param instance - New pipeline engine to use as the current one */ static setInstance(instance: PipelineEngine): void { _currentEngine = instance; } }