private void DisableFullTextIndex() { if (this._dataset is WebDemandDataset) { WebDemandDataset ds = (WebDemandDataset)this._dataset; if (ds.UnderlyingDataset is FullTextIndexedDataset) { this._dataset = ds.UnderlyingDataset; this.DisableFullTextIndex(); this._dataset = new WebDemandDataset(this._dataset); } } else if (this._dataset is FullTextIndexedDataset) { SparqlOptimiser.RemoveOptimiser(this._ftOptimiser); this._ftOptimiser = null; this._ftSearcher.Dispose(); this._ftSearcher = null; this._dataset = ((FullTextIndexedDataset)this._dataset).UnderlyingDataset; this._ftIndexer.Dispose(); this._ftIndexer = null; this._ftIndex.Dispose(); this._ftIndex = null; } this._processor = new LeviathanQueryProcessor(this._dataset); }
/// <summary> /// Perform any initialization tasks /// </summary> public void Initialize(IPipelines pipelines) { SparqlOptimiser.RemoveOptimiser(SparqlOptimiser.AlgebraOptimisers.FirstOrDefault(o => o.GetType() == typeof(LazyBgpOptimiser))); }