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

◆ InitOrderIndex()

void System.Linq.Parallel.SelectManyQueryOperator< TLeftInput, TRightInput, TOutput >.InitOrderIndex ( )
inlineprivate

Definition at line 201 of file SelectManyQueryOperator.cs.

202 {
203 OrdinalIndexState ordinalIndexState = base.Child.OrdinalIndexState;
204 if (_indexedRightChildSelector != null)
205 {
206 _prematureMerge = ordinalIndexState.IsWorseThan(OrdinalIndexState.Correct);
207 _limitsParallelism = _prematureMerge && ordinalIndexState != OrdinalIndexState.Shuffled;
208 }
209 else if (base.OutputOrdered)
210 {
211 _prematureMerge = ordinalIndexState.IsWorseThan(OrdinalIndexState.Increasing);
212 }
213 SetOrdinalIndexState(OrdinalIndexState.Increasing);
214 }
readonly Func< TLeftInput, int, IEnumerable< TRightInput > > _indexedRightChildSelector

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

Referenced by System.Linq.Parallel.SelectManyQueryOperator< TLeftInput, TRightInput, TOutput >.SelectManyQueryOperator().