private Iterator ConvertAlgebraNode(AlgebraNode algebraNode) { Visit(algebraNode); Iterator iterator = GetLastIterator(); return(iterator); }
private void SetLastIterator(AlgebraNode owner, Iterator iterator) { if (_includeStatistics && owner.StatisticsIterator == null) { owner.StatisticsIterator = new StatisticsIterator(); owner.StatisticsIterator.RowBuffer = iterator.RowBuffer; owner.StatisticsIterator.Input = iterator; iterator = owner.StatisticsIterator; } _lastIterator = iterator; }
internal static ShowPlan Build(AlgebraNode root) { ShowPlanElement rootElement = ShowPlanBuilder.Convert(root); return(new ShowPlan(rootElement)); }