System\Linq\Parallel\Partitioning\OrderedHashRepartitionStream.cs (9)
24: base(inputStream.PartitionCount, inputStream.KeyComparer, hashKeyComparer, elementComparer)
27new OrderedHashRepartitionEnumerator<TInputOutput, THashKey, TOrderKey>[inputStream.PartitionCount];
31CountdownEvent barrier = new CountdownEvent(inputStream.PartitionCount);
33new ListChunk<Pair<TInputOutput, THashKey>>[inputStream.PartitionCount, inputStream.PartitionCount];
34ListChunk<TOrderKey>[,] keyExchangeMatrix = new ListChunk<TOrderKey>[inputStream.PartitionCount, inputStream.PartitionCount];
37for (int i = 0; i < inputStream.PartitionCount; i++)
40inputStream[i], inputStream.PartitionCount, i, hashKeySelector, this, barrier,
System\Linq\Parallel\Partitioning\UnorderedHashRepartitionStream.cs (7)
30: base(inputStream.PartitionCount, Util.GetDefaultComparer<int>(), keyComparer, elementComparer)
33m_partitions = new HashRepartitionEnumerator<TInputOutput, THashKey, TIgnoreKey>[inputStream.PartitionCount];
37CountdownEvent barrier = new CountdownEvent(inputStream.PartitionCount);
39new ListChunk<Pair<TInputOutput, THashKey>>[inputStream.PartitionCount, inputStream.PartitionCount];
42for (int i = 0; i < inputStream.PartitionCount; i++)
45inputStream[i], inputStream.PartitionCount, i, keySelector, this,