129 references to OrdinalIndexState
System.Linq.Parallel (129)
System\Linq\Parallel\Merging\MergeExecutor.cs (1)
60
if (options != ParallelMergeOptions.FullyBuffered && !partitions.OrdinalIndexState.IsWorseThan(
OrdinalIndexState
.Increasing))
System\Linq\Parallel\Partitioning\HashRepartitionStream.cs (1)
47
: base(partitionsCount, orderKeyComparer,
OrdinalIndexState
.Shuffled)
System\Linq\Parallel\Partitioning\PartitionedDataSource.cs (2)
56
source is IList<T> ?
OrdinalIndexState
.Indexable :
OrdinalIndexState
.Correct)
System\Linq\Parallel\Partitioning\PartitionedStream.cs (3)
36
private readonly
OrdinalIndexState
_indexState; // State of the order keys.
38
internal PartitionedStream(int partitionCount, IComparer<TKey> keyComparer,
OrdinalIndexState
indexState)
96
internal
OrdinalIndexState
OrdinalIndexState
System\Linq\Parallel\QueryOperators\AssociativeAggregationOperator.cs (1)
187
partitionCount, Util.GetDefaultComparer<int>(),
OrdinalIndexState
.Correct);
System\Linq\Parallel\QueryOperators\Binary\ConcatQueryOperator.cs (8)
46
_prematureMergeLeft = LeftChild.OrdinalIndexState.IsWorseThan(
OrdinalIndexState
.Increasing);
47
_prematureMergeRight = RightChild.OrdinalIndexState.IsWorseThan(
OrdinalIndexState
.Increasing);
49
if ((LeftChild.OrdinalIndexState ==
OrdinalIndexState
.Indexable)
50
&& (RightChild.OrdinalIndexState ==
OrdinalIndexState
.Indexable))
52
SetOrdinalIndex(
OrdinalIndexState
.Indexable);
57
ExchangeUtilities.Worse(
OrdinalIndexState
.Increasing,
90
Debug.Assert(!ExchangeUtilities.IsWorseThan(leftStream.OrdinalIndexState,
OrdinalIndexState
.Increasing));
109
Debug.Assert(!ExchangeUtilities.IsWorseThan(rightStream.OrdinalIndexState,
OrdinalIndexState
.Increasing));
System\Linq\Parallel\QueryOperators\Binary\ExceptQueryOperator.cs (2)
37
SetOrdinalIndex(
OrdinalIndexState
.Shuffled);
90
new PartitionedStream<TInputOutput, TLeftKey>(partitionCount, leftHashStream.KeyComparer,
OrdinalIndexState
.Shuffled);
System\Linq\Parallel\QueryOperators\Binary\GroupJoinQueryOperator.cs (1)
55
SetOrdinalIndex(
OrdinalIndexState
.Shuffled);
System\Linq\Parallel\QueryOperators\Binary\IntersectQueryOperator.cs (2)
38
SetOrdinalIndex(
OrdinalIndexState
.Shuffled);
92
new PartitionedStream<TInputOutput, TLeftKey>(partitionCount, leftHashStream.KeyComparer,
OrdinalIndexState
.Shuffled);
System\Linq\Parallel\QueryOperators\Binary\JoinQueryOperator.cs (2)
71
SetOrdinalIndex(
OrdinalIndexState
.Shuffled);
82
if (ExchangeUtilities.IsWorseThan(LeftChild.OrdinalIndexState,
OrdinalIndexState
.Increasing))
System\Linq\Parallel\QueryOperators\Binary\UnionQueryOperator.cs (2)
129
new PartitionedStream<TInputOutput, ConcatKey<TLeftKey, TRightKey>>(partitionCount, compoundKeyComparer,
OrdinalIndexState
.Shuffled);
143
new PartitionedStream<TInputOutput, int>(partitionCount, Util.GetDefaultComparer<int>(),
OrdinalIndexState
.Shuffled);
System\Linq\Parallel\QueryOperators\Binary\ZipQueryOperator.cs (8)
67
OrdinalIndexState
leftIndexState = _leftChild.OrdinalIndexState;
68
OrdinalIndexState
rightIndexState = _rightChild.OrdinalIndexState;
70
_prematureMergeLeft = leftIndexState !=
OrdinalIndexState
.Indexable;
71
_prematureMergeRight = rightIndexState !=
OrdinalIndexState
.Indexable;
73
(_prematureMergeLeft && leftIndexState !=
OrdinalIndexState
.Shuffled)
74
|| (_prematureMergeRight && rightIndexState !=
OrdinalIndexState
.Shuffled);
136
internal override
OrdinalIndexState
OrdinalIndexState
140
return
OrdinalIndexState
.Indexable;
System\Linq\Parallel\QueryOperators\BinaryQueryOperator.cs (5)
28
private
OrdinalIndexState
_indexState =
OrdinalIndexState
.Shuffled;
57
internal sealed override
OrdinalIndexState
OrdinalIndexState
62
protected void SetOrdinalIndex(
OrdinalIndexState
indexState)
105
Debug.Assert(IsIndexible == (_op.OrdinalIndexState ==
OrdinalIndexState
.Indexable));
System\Linq\Parallel\QueryOperators\Inlined\InlinedAggregationOperator.cs (1)
125
partitionCount, Util.GetDefaultComparer<int>(),
OrdinalIndexState
.Correct);
System\Linq\Parallel\QueryOperators\Options\OrderingQueryOperator.cs (2)
23
private readonly
OrdinalIndexState
_ordinalIndexState;
66
internal override
OrdinalIndexState
OrdinalIndexState
System\Linq\Parallel\QueryOperators\Options\QueryExecutionOption.cs (2)
22
private readonly
OrdinalIndexState
_indexState;
45
internal override
OrdinalIndexState
OrdinalIndexState
System\Linq\Parallel\QueryOperators\PartitionerQueryOperator.cs (8)
67
internal override
OrdinalIndexState
OrdinalIndexState
75
internal static
OrdinalIndexState
GetOrdinalIndexState(Partitioner<TElement> partitioner)
81
return
OrdinalIndexState
.Shuffled;
88
return
OrdinalIndexState
.Correct;
92
return
OrdinalIndexState
.Increasing;
97
return
OrdinalIndexState
.Shuffled;
137
OrdinalIndexState
indexState = (orderablePartitioner != null)
139
:
OrdinalIndexState
.Shuffled;
System\Linq\Parallel\QueryOperators\QueryOperator.cs (1)
272
internal abstract
OrdinalIndexState
OrdinalIndexState { get; }
System\Linq\Parallel\QueryOperators\ScanQueryOperator.cs (3)
96
internal override
OrdinalIndexState
OrdinalIndexState
101
?
OrdinalIndexState
.Indexable
102
:
OrdinalIndexState
.Correct;
System\Linq\Parallel\QueryOperators\Unary\AnyAllSearchOperator.cs (1)
110
partitionCount, Util.GetDefaultComparer<int>(),
OrdinalIndexState
.Correct);
System\Linq\Parallel\QueryOperators\Unary\ContainsSearchOperator.cs (1)
87
PartitionedStream<bool, int> outputStream = new PartitionedStream<bool, int>(partitionCount, Util.GetDefaultComparer<int>(),
OrdinalIndexState
.Correct);
System\Linq\Parallel\QueryOperators\Unary\DefaultIfEmptyQueryOperator.cs (1)
42
SetOrdinalIndexState(ExchangeUtilities.Worse(Child.OrdinalIndexState,
OrdinalIndexState
.Correct));
System\Linq\Parallel\QueryOperators\Unary\DistinctQueryOperator.cs (2)
36
SetOrdinalIndexState(
OrdinalIndexState
.Shuffled);
84
new PartitionedStream<TInputOutput, TKey>(partitionCount, hashStream.KeyComparer,
OrdinalIndexState
.Shuffled);
System\Linq\Parallel\QueryOperators\Unary\ElementAtQueryOperator.cs (5)
44
OrdinalIndexState
childIndexState = Child.OrdinalIndexState;
45
if (ExchangeUtilities.IsWorseThan(childIndexState,
OrdinalIndexState
.Correct))
48
_limitsParallelism = childIndexState !=
OrdinalIndexState
.Shuffled;
75
Debug.Assert(intKeyStream.OrdinalIndexState ==
OrdinalIndexState
.Indexable);
86
partitionCount, Util.GetDefaultComparer<int>(),
OrdinalIndexState
.Correct);
System\Linq\Parallel\QueryOperators\Unary\FirstQueryOperator.cs (2)
41
_prematureMergeNeeded = Child.OrdinalIndexState.IsWorseThan(
OrdinalIndexState
.Increasing);
83
partitionCount, Util.GetDefaultComparer<int>(),
OrdinalIndexState
.Shuffled);
System\Linq\Parallel\QueryOperators\Unary\ForAllOperator.cs (1)
88
partitionCount, Util.GetDefaultComparer<int>(),
OrdinalIndexState
.Correct);
System\Linq\Parallel\QueryOperators\Unary\GroupByQueryOperator.cs (3)
65
SetOrdinalIndexState(
OrdinalIndexState
.Shuffled);
105
new PartitionedStream<IGrouping<TGroupKey, TElement>, TKey>(partitionCount, hashStream.KeyComparer,
OrdinalIndexState
.Shuffled);
143
new PartitionedStream<IGrouping<TGroupKey, TElement>, TKey>(partitionCount, hashStream.KeyComparer,
OrdinalIndexState
.Shuffled);
System\Linq\Parallel\QueryOperators\Unary\IndexedSelectQueryOperator.cs (6)
61
OrdinalIndexState
childIndexState = Child.OrdinalIndexState;
62
OrdinalIndexState
indexState = childIndexState;
64
if (ExchangeUtilities.IsWorseThan(childIndexState,
OrdinalIndexState
.Correct))
67
_limitsParallelism = childIndexState !=
OrdinalIndexState
.Shuffled;
68
indexState =
OrdinalIndexState
.Correct;
71
Debug.Assert(!ExchangeUtilities.IsWorseThan(indexState,
OrdinalIndexState
.Correct));
System\Linq\Parallel\QueryOperators\Unary\IndexedWhereQueryOperator.cs (4)
60
OrdinalIndexState
childIndexState = Child.OrdinalIndexState;
61
if (ExchangeUtilities.IsWorseThan(childIndexState,
OrdinalIndexState
.Correct))
64
_limitsParallelism = childIndexState !=
OrdinalIndexState
.Shuffled;
67
SetOrdinalIndexState(
OrdinalIndexState
.Increasing);
System\Linq\Parallel\QueryOperators\Unary\LastQueryOperator.cs (2)
42
_prematureMergeNeeded = Child.OrdinalIndexState.IsWorseThan(
OrdinalIndexState
.Increasing);
83
new PartitionedStream<TSource, int>(partitionCount, Util.GetDefaultComparer<int>(),
OrdinalIndexState
.Shuffled);
System\Linq\Parallel\QueryOperators\Unary\ReverseQueryOperator.cs (5)
43
if (Child.OrdinalIndexState ==
OrdinalIndexState
.Indexable)
45
SetOrdinalIndexState(
OrdinalIndexState
.Indexable);
49
SetOrdinalIndexState(
OrdinalIndexState
.Shuffled);
56
Debug.Assert(Child.OrdinalIndexState !=
OrdinalIndexState
.Indexable, "Don't take this code path if the child is indexable.");
60
partitionCount, new ReverseComparer<TKey>(inputStream.KeyComparer),
OrdinalIndexState
.Shuffled);
System\Linq\Parallel\QueryOperators\Unary\SelectManyQueryOperator.cs (5)
79
OrdinalIndexState
childIndexState = Child.OrdinalIndexState;
86
_prematureMerge = ExchangeUtilities.IsWorseThan(childIndexState,
OrdinalIndexState
.Correct);
87
_limitsParallelism = _prematureMerge && childIndexState !=
OrdinalIndexState
.Shuffled;
96
_prematureMerge = ExchangeUtilities.IsWorseThan(childIndexState,
OrdinalIndexState
.Increasing);
100
SetOrdinalIndexState(
OrdinalIndexState
.Increasing);
System\Linq\Parallel\QueryOperators\Unary\SingleQueryOperator.cs (1)
60
partitionCount, Util.GetDefaultComparer<int>(),
OrdinalIndexState
.Shuffled);
System\Linq\Parallel\QueryOperators\Unary\SortQueryOperator.cs (1)
47
SetOrdinalIndexState(
OrdinalIndexState
.Shuffled);
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (9)
62
private
OrdinalIndexState
OutputOrdinalIndexState()
64
OrdinalIndexState
indexState = Child.OrdinalIndexState;
66
if (indexState ==
OrdinalIndexState
.Indexable)
68
return
OrdinalIndexState
.Indexable;
71
if (indexState.IsWorseThan(
OrdinalIndexState
.Increasing))
74
indexState =
OrdinalIndexState
.Correct;
78
if (!_take && indexState ==
OrdinalIndexState
.Correct)
80
indexState =
OrdinalIndexState
.Increasing;
89
Debug.Assert(Child.OrdinalIndexState !=
OrdinalIndexState
.Indexable, "Don't take this code path if the child is indexable.");
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipWhileQueryOperator.cs (8)
89
OrdinalIndexState
requiredIndexState =
OrdinalIndexState
.Increasing;
90
OrdinalIndexState
childIndexState = Child.OrdinalIndexState;
93
requiredIndexState =
OrdinalIndexState
.Correct;
94
_limitsParallelism = childIndexState ==
OrdinalIndexState
.Increasing;
97
OrdinalIndexState
indexState = ExchangeUtilities.Worse(childIndexState,
OrdinalIndexState
.Correct);
106
indexState = indexState.Worse(
OrdinalIndexState
.Increasing);
System\Linq\Parallel\QueryOperators\Unary\WhereQueryOperator.cs (1)
45
ExchangeUtilities.Worse(Child.OrdinalIndexState,
OrdinalIndexState
.Increasing));
System\Linq\Parallel\QueryOperators\UnaryQueryOperator.cs (5)
28
private
OrdinalIndexState
_indexState =
OrdinalIndexState
.Shuffled;
65
internal sealed override
OrdinalIndexState
OrdinalIndexState
70
protected void SetOrdinalIndexState(
OrdinalIndexState
indexState)
110
Debug.Assert(IsIndexible == (_op.OrdinalIndexState ==
OrdinalIndexState
.Indexable));
System\Linq\Parallel\Utils\ExchangeUtilities.cs (6)
53
new PartitionedStream<T, int>(partitionCount, Util.GetDefaultComparer<int>(),
OrdinalIndexState
.Correct);
111
internal static
OrdinalIndexState
Worse(this
OrdinalIndexState
state1,
OrdinalIndexState
state2)
116
internal static bool IsWorseThan(this
OrdinalIndexState
state1,
OrdinalIndexState
state2)
System\Linq\Parallel\Utils\Sorting.cs (4)
47
private readonly
OrdinalIndexState
_indexState; // State of the order index
59
OrdinalIndexState
indexState, IComparer<TKey> keyComparer,
265
private void QuickSortIndicesInPlace(GrowingArray<TKey> keys, List<TInputOutput> values,
OrdinalIndexState
ordinalIndexState)
280
&& ordinalIndexState.IsWorseThan(
OrdinalIndexState
.Increasing))
System\Linq\ParallelEnumerable.cs (1)
4858
if (asOperator.OrdinalIndexState ==
OrdinalIndexState
.Indexable && asOperator.OutputOrdered)