private ReverseQueryOperatorResults( QueryResults <TSource> childQueryResults, ReverseQueryOperator <TSource> op, QuerySettings settings, bool preferStriping) : base(childQueryResults, op, settings, preferStriping) { Debug.Assert(_childQueryResults.IsIndexible); _count = _childQueryResults.ElementsCount; }
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)); } }
private ReverseQueryOperatorResults(QueryResults <TSource> childQueryResults, ReverseQueryOperator <TSource> op, QuerySettings settings, bool preferStriping) : base(childQueryResults, op, settings, preferStriping) { this.m_count = base.m_childQueryResults.ElementsCount; }