Exemplo n.º 1
0
		public static ResultIterator Convert(MetadataContext metadataContext, bool includeStatistics, ResultAlgebraNode resultAlgebraNode)
		{
			IteratorCreator iteratorCreator = new IteratorCreator(metadataContext, includeStatistics);
			Iterator iterator = iteratorCreator.ConvertAlgebraNode(resultAlgebraNode);

			ILEmitContext.CompleteILCompilation();

			if (includeStatistics)
				return (ResultIterator) ((StatisticsIterator) iterator).Input;

			return (ResultIterator) iterator;
		}
Exemplo n.º 2
0
        public static ResultIterator Convert(MetadataContext metadataContext, bool includeStatistics, ResultAlgebraNode resultAlgebraNode)
        {
            IteratorCreator iteratorCreator = new IteratorCreator(metadataContext, includeStatistics);
            Iterator        iterator        = iteratorCreator.ConvertAlgebraNode(resultAlgebraNode);

            ILEmitContext.CompleteILCompilation();

            if (includeStatistics)
            {
                return((ResultIterator)((StatisticsIterator)iterator).Input);
            }

            return((ResultIterator)iterator);
        }