Package org.jrdf.query.expression

Examples of org.jrdf.query.expression.Projection


        return new SelectAnswerImpl(heading, result, System.currentTimeMillis() - timeStarted, hasProjected());
    }

    private LinkedHashSet<Attribute> getHeading(EvaluatedRelation relation) {
        if (hasProjected()) {
            Projection projection = (Projection) expression;
            return new LinkedHashSet<Attribute>(projection.getAttributes());
        } else {
            return new LinkedHashSet<Attribute>(relation.getSortedHeading());
        }
    }
View Full Code Here


    public void caseAWildcardSelectClause(AWildcardSelectClause node) {
        try {
            WhereAnalyser analyser = analyseWhereClause(node.parent());
            Expression nextExpression = analyser.getExpression();
            declaredVariables.addAll(variableCollector.getAttributes().keySet());
            expression = new Projection(variableCollector, declaredVariables, nextExpression);
        } catch (ParserException e) {
            exception = e;
        }
    }
View Full Code Here

    public void caseAVariableListSelectClause(AVariableListSelectClause node) {
        try {
            WhereAnalyser analyser = analyseWhereClause(node.parent());
            Expression nextExpression = analyser.getExpression();
            super.caseAVariableListSelectClause(node);
            expression = new Projection(variableCollector, declaredVariables, nextExpression);
        } catch (ParserException e) {
            exception = e;
        }
    }
View Full Code Here

TOP

Related Classes of org.jrdf.query.expression.Projection

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.