internal override IEnumerable <IndexNode> Run(CollectionPage col, IndexService indexer)
        {
            var result = _query.Run(col, indexer);
            var all    = new QueryAll("_id", _order).Run(col, indexer);

            return(all.Except(result, new IndexNodeComparer()));
        }
Exemple #2
0
        internal override IEnumerable<IndexNode> Run(CollectionPage col, IndexService indexer)
        {
            var result = _query.Run(col, indexer);
            var all = new QueryAll("_id", _order).Run(col, indexer);

            return all.Except(result, new IndexNodeComparer());
        }
Exemple #3
0
        internal override IEnumerable <IndexNode> Run(CollectionPage col, IndexService indexer)
        {
            // run base query
            var result = _query.Run(col, indexer);

            this.UseIndex  = _query.UseIndex;
            this.UseFilter = _query.UseFilter;

            if (_query.UseIndex)
            {
                // if is by index, resolve here
                var all = new QueryAll("_id", _order).Run(col, indexer);

                return(all.Except(result, new IndexNodeComparer()));
            }
            else
            {
                // if is by document, must return all nodes to be ExecuteDocument after
                return(result);
            }
        }