Search in sources :

Example 1 with Intersection

use of org.eclipse.rdf4j.query.algebra.Intersection in project rdf4j by eclipse.

the class QueryModelBuilder method visit.

@Override
public TupleExpr visit(ASTTupleIntersect node, Object data) throws VisitorException {
    TupleExpr leftArg = (TupleExpr) node.getLeftArg().jjtAccept(this, null);
    TupleExpr rightArg = (TupleExpr) node.getRightArg().jjtAccept(this, null);
    return new Intersection(leftArg, rightArg);
}
Also used : Intersection(org.eclipse.rdf4j.query.algebra.Intersection) TupleExpr(org.eclipse.rdf4j.query.algebra.TupleExpr)

Example 2 with Intersection

use of org.eclipse.rdf4j.query.algebra.Intersection in project rdf4j by eclipse.

the class QueryModelBuilder method visit.

@Override
public TupleExpr visit(ASTGraphIntersect node, Object data) throws VisitorException {
    TupleExpr leftArg = (TupleExpr) node.getLeftArg().jjtAccept(this, null);
    TupleExpr rightArg = (TupleExpr) node.getRightArg().jjtAccept(this, null);
    return new Intersection(leftArg, rightArg);
}
Also used : Intersection(org.eclipse.rdf4j.query.algebra.Intersection) TupleExpr(org.eclipse.rdf4j.query.algebra.TupleExpr)

Aggregations

Intersection (org.eclipse.rdf4j.query.algebra.Intersection)2 TupleExpr (org.eclipse.rdf4j.query.algebra.TupleExpr)2