Package org.exist.xquery.pragmas

Examples of org.exist.xquery.pragmas.Optimize


                // Create the pragma
                final ExtensionExpression extension = new ExtensionExpression(context);
                if (optimizePragma != null) {
                    extension.addPragma(optimizePragma);
                }
                extension.addPragma(new Optimize(context, Optimize.OPTIMIZE_PRAGMA, null, false));
                extension.setExpression(locationStep);
               
                // Replace the old expression with the pragma
                path.replace(locationStep, extension);
               
View Full Code Here


            hasOptimized = true;
            final RewritableExpression path = (RewritableExpression) parent;
            try {
                // Create the pragma
                final ExtensionExpression extension = new ExtensionExpression(context);
                extension.addPragma(new Optimize(context, Optimize.OPTIMIZE_PRAGMA, null, false));
                extension.setExpression(filtered);
                // Replace the old expression with the pragma
                path.replace(filtered, extension);
            } catch (final XPathException e) {
                LOG.warn("Failed to optimize expression: " + filtered + ": " + e.getMessage(), e);
View Full Code Here

TOP

Related Classes of org.exist.xquery.pragmas.Optimize

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.