58 if ((num++ & 0
x3F) == 0)
96 internal AssociativeAggregationOperator(
IEnumerable<TInput> child,
TIntermediate seed,
Func<TIntermediate> seedFactory,
bool seedIsSpecified,
Func<TIntermediate, TInput, TIntermediate> intermediateReduce,
Func<TIntermediate, TIntermediate, TIntermediate> finalReduce,
Func<TIntermediate, TOutput> resultSelector,
bool throwIfEmpty,
QueryAggregationOptions options)
169 [
ExcludeFromCodeCoverage(Justification =
"This method should never be called. Associative aggregation can always be parallelized")]
readonly AssociativeAggregationOperator< TInput, TIntermediate, TOutput > _reduceOperator
readonly int _partitionIndex
readonly QueryOperatorEnumerator< TInput, TKey > _source
AssociativeAggregationOperatorEnumerator(QueryOperatorEnumerator< TInput, TKey > source, AssociativeAggregationOperator< TInput, TIntermediate, TOutput > reduceOperator, int partitionIndex, CancellationToken cancellationToken)
override bool MoveNext([MaybeNullWhen(false)][AllowNull] ref TIntermediate currentElement, ref int currentKey)
override void Dispose(bool disposing)
readonly CancellationToken _cancellationToken
AssociativeAggregationOperator(IEnumerable< TInput > child, TIntermediate seed, Func< TIntermediate > seedFactory, bool seedIsSpecified, Func< TIntermediate, TInput, TIntermediate > intermediateReduce, Func< TIntermediate, TIntermediate, TIntermediate > finalReduce, Func< TIntermediate, TOutput > resultSelector, bool throwIfEmpty, QueryAggregationOptions options)
override IEnumerable< TIntermediate > AsSequentialQuery(CancellationToken token)
readonly Func< TIntermediate > _seedFactory
readonly Func< TIntermediate, TOutput > _resultSelector
override bool LimitsParallelism
readonly Func< TIntermediate, TIntermediate, TIntermediate > _finalReduce
override void WrapPartitionedStream< TKey >(PartitionedStream< TInput, TKey > inputStream, IPartitionedStreamRecipient< TIntermediate > recipient, bool preferStriping, QuerySettings settings)
readonly Func< TIntermediate, TInput, TIntermediate > _intermediateReduce
readonly TIntermediate _seed
readonly bool _throwIfEmpty
readonly bool _seedIsSpecified
override QueryResults< TIntermediate > Open(QuerySettings settings, bool preferStriping)
CancellationToken MergedCancellationToken
bool MoveNext([MaybeNullWhen(false)][AllowNull] ref TElement currentElement, [AllowNull] ref TKey currentKey)
CancellationState CancellationState
void ThrowIfCancellationRequested()