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

◆ WrapPartitionedStream< TLeftKey >()

override void System.Linq.Parallel.SelectManyQueryOperator< TLeftInput, TRightInput, TOutput >.WrapPartitionedStream< TLeftKey > ( PartitionedStream< TLeftInput, TLeftKey > inputStream,
IPartitionedStreamRecipient< TOutput > recipient,
bool preferStriping,
QuerySettings settings )
inlinepackage

Definition at line 216 of file SelectManyQueryOperator.cs.

217 {
218 int partitionCount = inputStream.PartitionCount;
219 if (_indexedRightChildSelector != null)
220 {
222 if (_prematureMerge)
223 {
224 ListQueryResults<TLeftInput> listQueryResults = QueryOperator<TLeftInput>.ExecuteAndCollectResults(inputStream, partitionCount, base.OutputOrdered, preferStriping, settings);
225 inputStream2 = listQueryResults.GetPartitionedStream();
226 }
227 else
228 {
230 }
232 }
233 else if (_prematureMerge)
234 {
235 PartitionedStream<TLeftInput, int> partitionedStream = QueryOperator<TLeftInput>.ExecuteAndCollectResults(inputStream, partitionCount, base.OutputOrdered, preferStriping, settings).GetPartitionedStream();
237 }
238 else
239 {
240 WrapPartitionedStreamNotIndexed(inputStream, recipient, settings);
241 }
242 }
void WrapPartitionedStreamIndexed(PartitionedStream< TLeftInput, int > inputStream, IPartitionedStreamRecipient< TOutput > recipient, QuerySettings settings)
readonly Func< TLeftInput, int, IEnumerable< TRightInput > > _indexedRightChildSelector

References System.Linq.Parallel.SelectManyQueryOperator< TLeftInput, TRightInput, TOutput >._indexedRightChildSelector, System.Linq.Parallel.SelectManyQueryOperator< TLeftInput, TRightInput, TOutput >._prematureMerge, and System.Linq.Parallel.SelectManyQueryOperator< TLeftInput, TRightInput, TOutput >.WrapPartitionedStreamIndexed().