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; }
private Iterator GetLastIterator() { Iterator result = _lastIterator; _lastIterator = null; return result; }