128 references to OrdinalIndexState
System.Core (128)
System\Linq\Parallel\Merging\MergeExecutor.cs (1)
65
if (options != ParallelMergeOptions.FullyBuffered && !partitions.OrdinalIndexState.IsWorseThan(
OrdinalIndexState
.Increasing))
System\Linq\Parallel\Partitioning\HashRepartitionStream.cs (1)
51
: base(partitionsCount, orderKeyComparer,
OrdinalIndexState
.Shuffled)
System\Linq\Parallel\Partitioning\PartitionedDataSource.cs (2)
60
source is IList<T> ?
OrdinalIndexState
.Indexible :
OrdinalIndexState
.Correct)
System\Linq\Parallel\Partitioning\PartitionedStream.cs (3)
40
private readonly
OrdinalIndexState
m_indexState; // State of the order keys.
42
internal PartitionedStream(int partitionCount, IComparer<TKey> keyComparer,
OrdinalIndexState
indexState)
100
internal
OrdinalIndexState
OrdinalIndexState
System\Linq\Parallel\QueryOperators\AssociativeAggregationOperator.cs (1)
204
partitionCount, Util.GetDefaultComparer<int>(),
OrdinalIndexState
.Correct);
System\Linq\Parallel\QueryOperators\Binary\ExceptQueryOperator.cs (2)
41
SetOrdinalIndex(
OrdinalIndexState
.Shuffled);
94
new PartitionedStream<TInputOutput, TLeftKey>(partitionCount, leftHashStream.KeyComparer,
OrdinalIndexState
.Shuffled);
System\Linq\Parallel\QueryOperators\Binary\GroupJoinQueryOperator.cs (1)
60
SetOrdinalIndex(
OrdinalIndexState
.Shuffled);
System\Linq\Parallel\QueryOperators\Binary\IntersectQueryOperator.cs (2)
42
SetOrdinalIndex(
OrdinalIndexState
.Shuffled);
96
new PartitionedStream<TInputOutput, TLeftKey>(partitionCount, leftHashStream.KeyComparer,
OrdinalIndexState
.Shuffled);
System\Linq\Parallel\QueryOperators\Binary\JoinQueryOperator.cs (1)
76
SetOrdinalIndex(
OrdinalIndexState
.Shuffled);
System\Linq\Parallel\QueryOperators\Binary\UnionQueryOperator.cs (2)
133
new PartitionedStream<TInputOutput, ConcatKey<TLeftKey, TRightKey>>(partitionCount, compoundKeyComparer,
OrdinalIndexState
.Shuffled);
147
new PartitionedStream<TInputOutput, int>(partitionCount, Util.GetDefaultComparer<int>(),
OrdinalIndexState
.Shuffled);
System\Linq\Parallel\QueryOperators\Binary\ZipQueryOperator.cs (8)
72
OrdinalIndexState
leftIndexState = m_leftChild.OrdinalIndexState;
73
OrdinalIndexState
rightIndexState = m_rightChild.OrdinalIndexState;
75
m_prematureMergeLeft = leftIndexState !=
OrdinalIndexState
.Indexible;
76
m_prematureMergeRight = rightIndexState !=
OrdinalIndexState
.Indexible;
78
(m_prematureMergeLeft && leftIndexState !=
OrdinalIndexState
.Shuffled)
79
|| (m_prematureMergeRight && rightIndexState !=
OrdinalIndexState
.Shuffled);
137
internal override
OrdinalIndexState
OrdinalIndexState
141
return
OrdinalIndexState
.Indexible;
System\Linq\Parallel\QueryOperators\BinaryQueryOperator.cs (5)
32
private
OrdinalIndexState
m_indexState =
OrdinalIndexState
.Shuffled;
61
internal override sealed
OrdinalIndexState
OrdinalIndexState
66
protected void SetOrdinalIndex(
OrdinalIndexState
indexState)
109
Contract.Assert(IsIndexible == (m_op.OrdinalIndexState ==
OrdinalIndexState
.Indexible));
System\Linq\Parallel\QueryOperators\Inlined\InlinedAggregationOperator.cs (1)
135
partitionCount, Util.GetDefaultComparer<int>(),
OrdinalIndexState
.Correct);
System\Linq\Parallel\QueryOperators\Options\OrderingQueryOperator.cs (2)
29
private
OrdinalIndexState
m_ordinalIndexState;
74
internal override
OrdinalIndexState
OrdinalIndexState
System\Linq\Parallel\QueryOperators\Options\QueryExecutionOption.cs (2)
25
private
OrdinalIndexState
m_indexState;
48
internal override
OrdinalIndexState
OrdinalIndexState
System\Linq\Parallel\QueryOperators\PartitionerQueryOperator.cs (8)
73
internal override
OrdinalIndexState
OrdinalIndexState
81
internal static
OrdinalIndexState
GetOrdinalIndexState(Partitioner<TElement> partitioner)
87
return
OrdinalIndexState
.Shuffled;
94
return
OrdinalIndexState
.Correct;
98
return
OrdinalIndexState
.Increasing;
103
return
OrdinalIndexState
.Shuffled;
143
OrdinalIndexState
indexState = (orderablePartitioner != null)
145
:
OrdinalIndexState
.Shuffled;
System\Linq\Parallel\QueryOperators\QueryOperator.cs (1)
266
internal abstract
OrdinalIndexState
OrdinalIndexState { get; }
System\Linq\Parallel\QueryOperators\ScanQueryOperator.cs (3)
103
internal override
OrdinalIndexState
OrdinalIndexState
108
?
OrdinalIndexState
.Indexible
109
:
OrdinalIndexState
.Correct;
System\Linq\Parallel\QueryOperators\Unary\AnyAllSearchOperator.cs (1)
114
partitionCount, Util.GetDefaultComparer<int>(),
OrdinalIndexState
.Correct);
System\Linq\Parallel\QueryOperators\Unary\ConcatQueryOperator.cs (8)
50
m_prematureMergeLeft = LeftChild.OrdinalIndexState.IsWorseThan(
OrdinalIndexState
.Increasing);
51
m_prematureMergeRight = RightChild.OrdinalIndexState.IsWorseThan(
OrdinalIndexState
.Increasing);
53
if ((LeftChild.OrdinalIndexState ==
OrdinalIndexState
.Indexible)
54
&& (RightChild.OrdinalIndexState ==
OrdinalIndexState
.Indexible))
56
SetOrdinalIndex(
OrdinalIndexState
.Indexible);
61
ExchangeUtilities.Worse(
OrdinalIndexState
.Increasing,
94
Contract.Assert(!ExchangeUtilities.IsWorseThan(leftStream.OrdinalIndexState,
OrdinalIndexState
.Increasing));
113
Contract.Assert(!ExchangeUtilities.IsWorseThan(rightStream.OrdinalIndexState,
OrdinalIndexState
.Increasing));
System\Linq\Parallel\QueryOperators\Unary\ContainsSearchOperator.cs (1)
100
PartitionedStream<bool, int> outputStream = new PartitionedStream<bool, int>(partitionCount, Util.GetDefaultComparer<int>(),
OrdinalIndexState
.Correct);
System\Linq\Parallel\QueryOperators\Unary\DefaultIfEmptyQueryOperator.cs (1)
46
SetOrdinalIndexState(ExchangeUtilities.Worse(Child.OrdinalIndexState,
OrdinalIndexState
.Correct));
System\Linq\Parallel\QueryOperators\Unary\DistinctQueryOperator.cs (2)
40
SetOrdinalIndexState(
OrdinalIndexState
.Shuffled);
88
new PartitionedStream<TInputOutput, TKey>(partitionCount, hashStream.KeyComparer,
OrdinalIndexState
.Shuffled);
System\Linq\Parallel\QueryOperators\Unary\ElementAtQueryOperator.cs (5)
48
OrdinalIndexState
childIndexState = Child.OrdinalIndexState;
49
if (ExchangeUtilities.IsWorseThan(childIndexState,
OrdinalIndexState
.Correct))
52
m_limitsParallelism = childIndexState !=
OrdinalIndexState
.Shuffled;
79
Contract.Assert(intKeyStream.OrdinalIndexState ==
OrdinalIndexState
.Indexible);
90
partitionCount, Util.GetDefaultComparer<int>(),
OrdinalIndexState
.Correct);
System\Linq\Parallel\QueryOperators\Unary\FirstQueryOperator.cs (2)
45
m_prematureMergeNeeded = Child.OrdinalIndexState.IsWorseThan(
OrdinalIndexState
.Increasing);
85
partitionCount, Util.GetDefaultComparer<int>(),
OrdinalIndexState
.Shuffled);
System\Linq\Parallel\QueryOperators\Unary\ForAllOperator.cs (1)
92
partitionCount, Util.GetDefaultComparer<int>(),
OrdinalIndexState
.Correct);
System\Linq\Parallel\QueryOperators\Unary\GroupByQueryOperator.cs (3)
69
SetOrdinalIndexState(
OrdinalIndexState
.Shuffled);
109
new PartitionedStream<IGrouping<TGroupKey, TElement>, TKey>(partitionCount, hashStream.KeyComparer,
OrdinalIndexState
.Shuffled);
148
new PartitionedStream<IGrouping<TGroupKey, TElement>, TKey>(partitionCount, hashStream.KeyComparer,
OrdinalIndexState
.Shuffled);
System\Linq\Parallel\QueryOperators\Unary\IndexedSelectQueryOperator.cs (6)
65
OrdinalIndexState
childIndexState = Child.OrdinalIndexState;
66
OrdinalIndexState
indexState = childIndexState;
68
if (ExchangeUtilities.IsWorseThan(childIndexState,
OrdinalIndexState
.Correct))
71
m_limitsParallelism = childIndexState !=
OrdinalIndexState
.Shuffled;
72
indexState =
OrdinalIndexState
.Correct;
75
Contract.Assert(!ExchangeUtilities.IsWorseThan(indexState,
OrdinalIndexState
.Correct));
System\Linq\Parallel\QueryOperators\Unary\IndexedWhereQueryOperator.cs (4)
64
OrdinalIndexState
childIndexState = Child.OrdinalIndexState;
65
if (ExchangeUtilities.IsWorseThan(childIndexState,
OrdinalIndexState
.Correct))
68
m_limitsParallelism = childIndexState !=
OrdinalIndexState
.Shuffled;
71
SetOrdinalIndexState(
OrdinalIndexState
.Increasing);
System\Linq\Parallel\QueryOperators\Unary\LastQueryOperator.cs (2)
46
m_prematureMergeNeeded = Child.OrdinalIndexState.IsWorseThan(
OrdinalIndexState
.Increasing);
85
new PartitionedStream<TSource, int>(partitionCount, Util.GetDefaultComparer<int>(),
OrdinalIndexState
.Shuffled);
System\Linq\Parallel\QueryOperators\Unary\ReverseQueryOperator.cs (5)
47
if (Child.OrdinalIndexState ==
OrdinalIndexState
.Indexible)
49
SetOrdinalIndexState(
OrdinalIndexState
.Indexible);
53
SetOrdinalIndexState(
OrdinalIndexState
.Shuffled);
61
Contract.Assert(Child.OrdinalIndexState !=
OrdinalIndexState
.Indexible, "Don't take this code path if the child is indexible.");
65
partitionCount, new ReverseComparer<TKey>(inputStream.KeyComparer),
OrdinalIndexState
.Shuffled);
System\Linq\Parallel\QueryOperators\Unary\SelectManyQueryOperator.cs (5)
83
OrdinalIndexState
childIndexState = Child.OrdinalIndexState;
90
m_prematureMerge = ExchangeUtilities.IsWorseThan(childIndexState,
OrdinalIndexState
.Correct);
91
m_limitsParallelism = m_prematureMerge && childIndexState !=
OrdinalIndexState
.Shuffled;
100
m_prematureMerge = ExchangeUtilities.IsWorseThan(childIndexState,
OrdinalIndexState
.Increasing);
104
SetOrdinalIndexState(
OrdinalIndexState
.Increasing);
System\Linq\Parallel\QueryOperators\Unary\SingleQueryOperator.cs (1)
64
partitionCount, Util.GetDefaultComparer<int>(),
OrdinalIndexState
.Shuffled);
System\Linq\Parallel\QueryOperators\Unary\SortQueryOperator.cs (1)
58
SetOrdinalIndexState(
OrdinalIndexState
.Shuffled);
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (9)
66
private
OrdinalIndexState
OutputOrdinalIndexState()
68
OrdinalIndexState
indexState = Child.OrdinalIndexState;
70
if (indexState ==
OrdinalIndexState
.Indexible)
72
return
OrdinalIndexState
.Indexible;
75
if (indexState.IsWorseThan(
OrdinalIndexState
.Increasing))
78
indexState =
OrdinalIndexState
.Correct;
82
if (!m_take && indexState ==
OrdinalIndexState
.Correct)
84
indexState =
OrdinalIndexState
.Increasing;
93
Contract.Assert(Child.OrdinalIndexState !=
OrdinalIndexState
.Indexible, "Don't take this code path if the child is indexible.");
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipWhileQueryOperator.cs (8)
93
OrdinalIndexState
requiredIndexState =
OrdinalIndexState
.Increasing;
94
OrdinalIndexState
childIndexState = Child.OrdinalIndexState;
97
requiredIndexState =
OrdinalIndexState
.Correct;
98
m_limitsParallelism = childIndexState ==
OrdinalIndexState
.Increasing;
101
OrdinalIndexState
indexState = ExchangeUtilities.Worse(childIndexState,
OrdinalIndexState
.Correct);
110
indexState = indexState.Worse(
OrdinalIndexState
.Increasing);
System\Linq\Parallel\QueryOperators\Unary\WhereQueryOperator.cs (1)
49
ExchangeUtilities.Worse(Child.OrdinalIndexState,
OrdinalIndexState
.Increasing));
System\Linq\Parallel\QueryOperators\UnaryQueryOperator.cs (5)
33
private
OrdinalIndexState
m_indexState =
OrdinalIndexState
.Shuffled;
70
internal override sealed
OrdinalIndexState
OrdinalIndexState
75
protected void SetOrdinalIndexState(
OrdinalIndexState
indexState)
115
Contract.Assert(IsIndexible == (m_op.OrdinalIndexState ==
OrdinalIndexState
.Indexible));
System\Linq\Parallel\Utils\ExchangeUtilities.cs (6)
61
new PartitionedStream<T, int>(partitionCount, Util.GetDefaultComparer<int>(),
OrdinalIndexState
.Correct);
119
internal static
OrdinalIndexState
Worse(this
OrdinalIndexState
state1,
OrdinalIndexState
state2)
124
internal static bool IsWorseThan(this
OrdinalIndexState
state1,
OrdinalIndexState
state2)
System\Linq\Parallel\Utils\Sorting.cs (4)
52
private
OrdinalIndexState
m_indexState; // State of the order index
64
OrdinalIndexState
indexState, IComparer<TKey> keyComparer,
273
private void QuickSortIndicesInPlace(GrowingArray<TKey> keys, List<TInputOutput> values,
OrdinalIndexState
ordinalIndexState)
288
&& ordinalIndexState.IsWorseThan(
OrdinalIndexState
.Increasing))
System\Linq\ParallelEnumerable.cs (1)
4897
if (asOperator.OrdinalIndexState ==
OrdinalIndexState
.Indexible && asOperator.OutputOrdered)