Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
PartitionedStreamMerger.cs
Go to the documentation of this file.
1
using
System.Threading.Tasks
;
2
3
namespace
System.Linq.Parallel
;
4
5
internal
sealed
class
PartitionedStreamMerger
<TOutput> :
IPartitionedStreamRecipient
<TOutput>
6
{
7
private
readonly
bool
_forEffectMerge
;
8
9
private
readonly
ParallelMergeOptions
_mergeOptions
;
10
11
private
readonly
bool
_isOrdered
;
12
13
private
MergeExecutor<TOutput>
_mergeExecutor
;
14
15
private
readonly
TaskScheduler
_taskScheduler
;
16
17
private
readonly
int
_queryId
;
18
19
private
readonly
CancellationState
_cancellationState
;
20
21
internal
MergeExecutor<TOutput>
MergeExecutor
=>
_mergeExecutor
;
22
23
internal
PartitionedStreamMerger
(
bool
forEffectMerge,
ParallelMergeOptions
mergeOptions,
TaskScheduler
taskScheduler,
bool
outputOrdered,
CancellationState
cancellationState,
int
queryId)
24
{
25
_forEffectMerge
= forEffectMerge;
26
_mergeOptions
= mergeOptions;
27
_isOrdered
= outputOrdered;
28
_taskScheduler
= taskScheduler;
29
_cancellationState
= cancellationState;
30
_queryId
= queryId;
31
}
32
33
public
void
Receive<TKey>
(
PartitionedStream<TOutput, TKey>
partitionedStream)
34
{
35
_mergeExecutor
=
MergeExecutor<TOutput>
.
Execute
(partitionedStream,
_forEffectMerge
,
_mergeOptions
,
_taskScheduler
,
_isOrdered
,
_cancellationState
,
_queryId
);
36
}
37
}
System.Linq.Parallel.CancellationState
Definition
CancellationState.cs:6
System.Linq.Parallel.MergeExecutor.Execute
void Execute()
Definition
MergeExecutor.cs:46
System.Linq.Parallel.MergeExecutor
Definition
MergeExecutor.cs:9
System.Linq.Parallel.PartitionedStreamMerger._isOrdered
readonly bool _isOrdered
Definition
PartitionedStreamMerger.cs:11
System.Linq.Parallel.PartitionedStreamMerger._mergeExecutor
MergeExecutor< TOutput > _mergeExecutor
Definition
PartitionedStreamMerger.cs:13
System.Linq.Parallel.PartitionedStreamMerger._queryId
readonly int _queryId
Definition
PartitionedStreamMerger.cs:17
System.Linq.Parallel.PartitionedStreamMerger._taskScheduler
readonly TaskScheduler _taskScheduler
Definition
PartitionedStreamMerger.cs:15
System.Linq.Parallel.PartitionedStreamMerger._mergeOptions
readonly ParallelMergeOptions _mergeOptions
Definition
PartitionedStreamMerger.cs:9
System.Linq.Parallel.PartitionedStreamMerger.PartitionedStreamMerger
PartitionedStreamMerger(bool forEffectMerge, ParallelMergeOptions mergeOptions, TaskScheduler taskScheduler, bool outputOrdered, CancellationState cancellationState, int queryId)
Definition
PartitionedStreamMerger.cs:23
System.Linq.Parallel.PartitionedStreamMerger.Receive< TKey >
void Receive< TKey >(PartitionedStream< TOutput, TKey > partitionedStream)
Definition
PartitionedStreamMerger.cs:33
System.Linq.Parallel.PartitionedStreamMerger._cancellationState
readonly CancellationState _cancellationState
Definition
PartitionedStreamMerger.cs:19
System.Linq.Parallel.PartitionedStreamMerger._forEffectMerge
readonly bool _forEffectMerge
Definition
PartitionedStreamMerger.cs:7
System.Linq.Parallel.PartitionedStreamMerger
Definition
PartitionedStreamMerger.cs:6
System.Linq.Parallel.PartitionedStream
Definition
PartitionedStream.cs:6
System.Threading.Tasks.TaskScheduler
Definition
TaskScheduler.cs:10
System.Linq.Parallel.IPartitionedStreamRecipient
Definition
IPartitionedStreamRecipient.cs:4
System.Linq.Parallel
Definition
AnyAllSearchOperator.cs:5
System.Linq.ParallelMergeOptions
ParallelMergeOptions
Definition
ParallelMergeOptions.cs:4
System.Threading.Tasks
Definition
TaskToApm.cs:3
source
System.Linq.Parallel
System.Linq.Parallel
PartitionedStreamMerger.cs
Generated by
1.10.0