System\Linq\Parallel\Partitioning\OrderedHashRepartitionStream.cs (9)
20: base(inputStream.PartitionCount, inputStream.KeyComparer, hashKeyComparer, elementComparer)
23new OrderedHashRepartitionEnumerator<TInputOutput, THashKey, TOrderKey>[inputStream.PartitionCount];
27CountdownEvent barrier = new CountdownEvent(inputStream.PartitionCount);
29JaggedArray<ListChunk<Pair<TInputOutput, THashKey>>>.Allocate(inputStream.PartitionCount, inputStream.PartitionCount);
31JaggedArray<ListChunk<TOrderKey>>.Allocate(inputStream.PartitionCount, inputStream.PartitionCount);
34for (int i = 0; i < inputStream.PartitionCount; i++)
37inputStream[i], inputStream.PartitionCount, i, hashKeySelector, this, barrier,
System\Linq\Parallel\Partitioning\UnorderedHashRepartitionStream.cs (7)
25: base(inputStream.PartitionCount, Util.GetDefaultComparer<int>(), keyComparer, elementComparer)
28_partitions = new HashRepartitionEnumerator<TInputOutput, THashKey, TIgnoreKey>[inputStream.PartitionCount];
32CountdownEvent barrier = new CountdownEvent(inputStream.PartitionCount);
34JaggedArray<ListChunk<Pair<TInputOutput, THashKey>>>.Allocate(inputStream.PartitionCount, inputStream.PartitionCount);
37for (int i = 0; i < inputStream.PartitionCount; i++)
40inputStream[i], inputStream.PartitionCount, i, keySelector, this,