Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ OrderedHashRepartitionStream()

System.Linq.Parallel.OrderedHashRepartitionStream< TInputOutput, THashKey, TOrderKey >.OrderedHashRepartitionStream ( PartitionedStream< TInputOutput, TOrderKey > inputStream,
Func< TInputOutput, THashKey > hashKeySelector,
IEqualityComparer< THashKey > hashKeyComparer,
IEqualityComparer< TInputOutput > elementComparer,
CancellationToken cancellationToken )
inlinepackage

Definition at line 8 of file OrderedHashRepartitionStream.cs.

9 : base(inputStream.PartitionCount, inputStream.KeyComparer, hashKeyComparer, elementComparer)
10 {
13 CountdownEvent barrier = new CountdownEvent(inputStream.PartitionCount);
14 ListChunk<Pair<TInputOutput, THashKey>>[][] valueExchangeMatrix = JaggedArray<ListChunk<Pair<TInputOutput, THashKey>>>.Allocate(inputStream.PartitionCount, inputStream.PartitionCount);
15 ListChunk<TOrderKey>[][] keyExchangeMatrix = JaggedArray<ListChunk<TOrderKey>>.Allocate(inputStream.PartitionCount, inputStream.PartitionCount);
16 for (int i = 0; i < inputStream.PartitionCount; i++)
17 {
19 }
20 }

References System.Linq.Parallel.PartitionedStream< Pair< TInputOutput, THashKey >, TOrderKey >._partitions, and System.cancellationToken.