private ConcatQueryOperatorResults( QueryResults <TSource> leftChildQueryResults, QueryResults <TSource> rightChildQueryResults, ConcatQueryOperator <TSource> concatOp, QuerySettings settings, bool preferStriping) : base(leftChildQueryResults, rightChildQueryResults, concatOp, settings, preferStriping) { Debug.Assert(leftChildQueryResults.IsIndexible && rightChildQueryResults.IsIndexible); _leftChildCount = leftChildQueryResults.ElementsCount; _rightChildCount = rightChildQueryResults.ElementsCount; }
private ConcatQueryOperatorResults( QueryResults <TSource> leftChildQueryResults, QueryResults <TSource> rightChildQueryResults, ConcatQueryOperator <TSource> concatOp, QuerySettings settings, bool preferStriping) : base(leftChildQueryResults, rightChildQueryResults, concatOp, settings, preferStriping) { #if !MONO m_concatOp = concatOp; #endif Contract.Assert(leftChildQueryResults.IsIndexible && rightChildQueryResults.IsIndexible); m_leftChildCount = leftChildQueryResults.ElementsCount; m_rightChildCount = rightChildQueryResults.ElementsCount; }
int m_rightChildCount; // The number of elements in the right child result set public static QueryResults <TSource> NewResults( QueryResults <TSource> leftChildQueryResults, QueryResults <TSource> rightChildQueryResults, ConcatQueryOperator <TSource> op, QuerySettings settings, bool preferStriping) { if (leftChildQueryResults.IsIndexible && rightChildQueryResults.IsIndexible) { return(new ConcatQueryOperatorResults( leftChildQueryResults, rightChildQueryResults, op, settings, preferStriping)); } else { return(new BinaryQueryOperatorResults( leftChildQueryResults, rightChildQueryResults, op, settings, preferStriping)); } }
private ConcatQueryOperatorResults(QueryResults <TSource> leftChildQueryResults, QueryResults <TSource> rightChildQueryResults, ConcatQueryOperator <TSource> concatOp, QuerySettings settings, bool preferStriping) : base(leftChildQueryResults, rightChildQueryResults, concatOp, settings, preferStriping) { this.m_concatOp = concatOp; this.m_leftChildCount = leftChildQueryResults.ElementsCount; this.m_rightChildCount = rightChildQueryResults.ElementsCount; }