private SelectQueryOperatorResults( QueryResults <TInput> childQueryResults, SelectQueryOperator <TInput, TOutput> op, QuerySettings settings, bool preferStriping) : base(childQueryResults, op, settings, preferStriping) { Debug.Assert(op._selector != null); _selector = op._selector; Debug.Assert(_childQueryResults.IsIndexible); _childCount = _childQueryResults.ElementsCount; }
private int _childCount; // The number of elements in child results public static QueryResults <TOutput> NewResults( QueryResults <TInput> childQueryResults, SelectQueryOperator <TInput, TOutput> op, QuerySettings settings, bool preferStriping) { if (childQueryResults.IsIndexible) { return(new SelectQueryOperatorResults(childQueryResults, op, settings, preferStriping)); } else { return(new UnaryQueryOperatorResults(childQueryResults, op, settings, preferStriping)); } }
private SelectQueryOperatorResults(QueryResults <TInput> childQueryResults, SelectQueryOperator <TInput, TOutput> op, QuerySettings settings, bool preferStriping) : base(childQueryResults, op, settings, preferStriping) { this.m_selector = op.m_selector; this.m_childCount = base.m_childQueryResults.ElementsCount; }