Package xbird.engine.request

Examples of xbird.engine.request.PreparedQueryRequest


        final Signature rsig = request.getSignature();
        if(rsig != Signature.PREPARED_QUERY) {
            throw new IllegalStateException("Illegal command is passed to PreparedQueryProcessor: "
                    + rsig);
        }
        final PreparedQueryRequest queryRequest = (PreparedQueryRequest) request;
        final XQExpression queryExpr = queryRequest.getCompiledExpression();
        if(queryExpr == null) {
            throw new IllegalStateException("query was null for: " + queryRequest);
        }

        final ThreadedVariableCollector collector = new ThreadedVariableCollector();
View Full Code Here


    public Sequence<? extends Item> eval(Sequence<? extends Item> contextSeq, DynamicContext dynEnv)
            throws XQueryException {
        XQExpression outsideQueryExpr = dynEnv.getQueryExpression();
        OutsideNonDownwardAxisDetector outsideNdaDetector = new OutsideNonDownwardAxisDetector();
        outsideNdaDetector.visit(outsideQueryExpr, null);
        final PreparedQueryRequest request = new PreparedQueryRequest(_queryExpr, outsideNdaDetector.foundNonDownwardAxis() ? ReturnType.REMOTE_PADED_SEQUENCE
                : RemoteEval.RETURN_TYPE);

        InsideNonDownwardAxisDetector insideNdaDetector = new InsideNonDownwardAxisDetector();
        insideNdaDetector.visit(_queryExpr, null);
        PreparedQueryRequest svRequest = insideNdaDetector.foundNonDownwardAxis() ? new PreparedQueryRequest(_queryExpr, ReturnType.REMOTE_PADED_SEQUENCE)
                : request;

        final ArrayList<ShippedVariable> shippedVars = new ArrayList<ShippedVariable>(4);
        ShippedVariableCollector collector = new ShippedVariableCollector(shippedVars);
        collector.visit(_queryExpr, null);
View Full Code Here

TOP

Related Classes of xbird.engine.request.PreparedQueryRequest

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.