Search in sources :

Example 1 with CompareAny

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

the class QueryModelBuilder method visit.

@Override
public CompareAny visit(ASTCompareAny node, Object data) throws VisitorException {
    ValueExpr valueExpr = (ValueExpr) node.getLeftOperand().jjtAccept(this, null);
    TupleExpr tupleExpr = (TupleExpr) node.getRightOperand().jjtAccept(this, null);
    CompareOp op = node.getOperator().getValue();
    return new CompareAny(valueExpr, tupleExpr, op);
}
Also used : ValueExpr(org.eclipse.rdf4j.query.algebra.ValueExpr) ASTValueExpr(org.eclipse.rdf4j.query.parser.serql.ast.ASTValueExpr) CompareOp(org.eclipse.rdf4j.query.algebra.Compare.CompareOp) CompareAny(org.eclipse.rdf4j.query.algebra.CompareAny) ASTCompareAny(org.eclipse.rdf4j.query.parser.serql.ast.ASTCompareAny) TupleExpr(org.eclipse.rdf4j.query.algebra.TupleExpr)

Aggregations

CompareOp (org.eclipse.rdf4j.query.algebra.Compare.CompareOp)1 CompareAny (org.eclipse.rdf4j.query.algebra.CompareAny)1 TupleExpr (org.eclipse.rdf4j.query.algebra.TupleExpr)1 ValueExpr (org.eclipse.rdf4j.query.algebra.ValueExpr)1 ASTCompareAny (org.eclipse.rdf4j.query.parser.serql.ast.ASTCompareAny)1 ASTValueExpr (org.eclipse.rdf4j.query.parser.serql.ast.ASTValueExpr)1