Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SortQueryOperatorResults.cs
Go to the documentation of this file.
2
3internal sealed class SortQueryOperatorResults<TInputOutput, TSortKey> : QueryResults<TInputOutput>
4{
5 private sealed class ChildResultsRecipient : IPartitionedStreamRecipient<TInputOutput>
6 {
8
10
12
14 {
15 _outputRecipient = outputRecipient;
16 _op = op;
17 _settings = settings;
18 }
19
20 public void Receive<TKey>(PartitionedStream<TInputOutput, TKey> childPartitionedStream)
21 {
22 _op.WrapPartitionedStream(childPartitionedStream, _outputRecipient, preferStriping: false, _settings);
23 }
24 }
25
27
29
31
32 internal override bool IsIndexible => false;
33
35 {
36 _childQueryResults = childQueryResults;
37 _op = op;
38 _settings = settings;
39 }
40
45}
void GivePartitionedStream(IPartitionedStreamRecipient< T > recipient)
readonly SortQueryOperator< TInputOutput, TSortKey > _op
readonly IPartitionedStreamRecipient< TInputOutput > _outputRecipient
ChildResultsRecipient(IPartitionedStreamRecipient< TInputOutput > outputRecipient, SortQueryOperator< TInputOutput, TSortKey > op, QuerySettings settings)
void Receive< TKey >(PartitionedStream< TInputOutput, TKey > childPartitionedStream)
override void GivePartitionedStream(IPartitionedStreamRecipient< TInputOutput > recipient)
readonly SortQueryOperator< TInputOutput, TSortKey > _op
SortQueryOperatorResults(QueryResults< TInputOutput > childQueryResults, SortQueryOperator< TInputOutput, TSortKey > op, QuerySettings settings)