Example #1
0
        public SortedAggregator(IAggregateExpression keySelector, SortDirection sortDirection)
        {
            _keySelector = keySelector;
            var comparer = CreateComparer(sortDirection);

            _sortedFactCollection = new SortedFactCollection <TSource, TKey>(comparer);
        }
Example #2
0
        public MultiKeySortedAggregator(IEnumerable <SortCondition> sortConditions)
        {
            _sortConditions = sortConditions.ToArray();
            var comparer = CreateComparer(_sortConditions);

            _sortedFactCollection = new SortedFactCollection <TSource, object[]>(comparer);
        }