Ejemplo n.º 1
0
        private static bool RewriteQueryInternal(
            T_Tile toFill, T_Tile toAvoid, out T_Tile rewriting, List <T_Tile> views,
            RewritingProcessor <T_Tile> qp)
        {
            var rewritingPass = new RewritingPass <T_Tile>(toFill, toAvoid, views, qp);

            return(rewritingPass.RewriteQuery(out rewriting));
        }
Ejemplo n.º 2
0
        public bool RewriteQueryOnce(
            T_Tile toFill,
            T_Tile toAvoid,
            IEnumerable <T_Tile> views,
            out T_Tile rewriting)
        {
            List <T_Tile> views1 = new List <T_Tile>(views);

            return(RewritingPass <T_Tile> .RewriteQuery(toFill, toAvoid, out rewriting, views1, this));
        }
Ejemplo n.º 3
0
        public static bool RewriteQuery(
            T_Tile toFill, T_Tile toAvoid, out T_Tile rewriting, List <T_Tile> views, RewritingProcessor <T_Tile> qp)
        {
            var rewritingPass = new RewritingPass <T_Tile>(toFill, toAvoid, views, qp);

            if (rewritingPass.RewriteQuery(out rewriting))
            {
                RewritingSimplifier <T_Tile> .TrySimplifyUnionRewriting(ref rewriting, toFill, toAvoid, qp);

                return(true);
            }
            return(false);
        }