// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // namespace Microsoft.SqlTools.ServiceLayer.ShowPlan.ShowPlanGraph { /// /// Interface represents ability to split an data source containing multiple /// batches / statement into statements and return an XML containing a single statement. /// This is used for XML ShowPlan saving. /// public interface IXmlBatchParser { /// /// Builds one or more Graphs that /// represnet data from the data source. /// /// Data Source. /// An array of AnalysisServices Graph objects. string GetSingleStatementXml(object dataSource, int statementIndex); /// /// Returns statements block type object /// /// Data source /// Statement index in the data source /// Statement block type object StmtBlockType GetSingleStatementObject(object dataSource, int statementIndex); } }