Esempio n. 1
0
 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;
 }
Esempio n. 2
0
            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));
                }
            }
Esempio n. 3
0
 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;
 }