コード例 #1
0
        private Iterator ConvertAlgebraNode(AlgebraNode algebraNode)
        {
            Visit(algebraNode);
            Iterator iterator = GetLastIterator();

            return(iterator);
        }
コード例 #2
0
        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;
        }
コード例 #3
0
        internal static ShowPlan Build(AlgebraNode root)
        {
            ShowPlanElement rootElement = ShowPlanBuilder.Convert(root);

            return(new ShowPlan(rootElement));
        }