@jahed/sparql-engine
Version:
SPARQL query engine for servers and web browsers.
25 lines • 782 B
JavaScript
// SPDX-License-Identifier: MIT
import { PipelineEngine } from "./pipeline-engine.js";
import VectorPipeline from "./vector-pipeline.js";
// current pipeline engine used for processing bindings
let _currentEngine = 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() {
return _currentEngine;
}
/**
* Set the instance of the current pipeline engine
* @param instance - New pipeline engine to use as the current one
*/
static setInstance(instance) {
_currentEngine = instance;
}
}
//# sourceMappingURL=pipeline.js.map