internal AssociativeAggregationOperatorEnumerator(QueryOperatorEnumerator <TInput, TKey> source, AssociativeAggregationOperator <TInput, TIntermediate, TOutput> reduceOperator, int partitionIndex, CancellationToken cancellationToken)
 {
     this.m_source            = source;
     this.m_reduceOperator    = reduceOperator;
     this.m_partitionIndex    = partitionIndex;
     this.m_cancellationToken = cancellationToken;
 }
Пример #2
0
            private bool _accumulated;                                                                        // Whether we've accumulated already. (false-sharing risk, but only written once)


            //---------------------------------------------------------------------------------------
            // Instantiates a new aggregation operator.
            //

            internal AssociativeAggregationOperatorEnumerator(QueryOperatorEnumerator <TInput, TKey> source,
                                                              AssociativeAggregationOperator <TInput, TIntermediate, TOutput> reduceOperator, int partitionIndex,
                                                              CancellationToken cancellationToken)
            {
                Contract.Assert(source != null);
                Contract.Assert(reduceOperator != null);

                _source            = source;
                _reduceOperator    = reduceOperator;
                _partitionIndex    = partitionIndex;
                _cancellationToken = cancellationToken;
            }