コード例 #1
0
 private ReverseQueryOperatorResults(
     QueryResults <TSource> childQueryResults, ReverseQueryOperator <TSource> op,
     QuerySettings settings, bool preferStriping)
     : base(childQueryResults, op, settings, preferStriping)
 {
     Debug.Assert(_childQueryResults.IsIndexible);
     _count = _childQueryResults.ElementsCount;
 }
コード例 #2
0
            private readonly int _count; // The number of elements in child results

            public static QueryResults <TSource> NewResults(
                QueryResults <TSource> childQueryResults, ReverseQueryOperator <TSource> op,
                QuerySettings settings, bool preferStriping)
            {
                if (childQueryResults.IsIndexible)
                {
                    return(new ReverseQueryOperatorResults(
                               childQueryResults, op, settings, preferStriping));
                }
                else
                {
                    return(new UnaryQueryOperatorResults(
                               childQueryResults, op, settings, preferStriping));
                }
            }
コード例 #3
0
 private ReverseQueryOperatorResults(QueryResults <TSource> childQueryResults, ReverseQueryOperator <TSource> op, QuerySettings settings, bool preferStriping) : base(childQueryResults, op, settings, preferStriping)
 {
     this.m_count = base.m_childQueryResults.ElementsCount;
 }