01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 2008.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.sail.rdbms.algebra;
07:
08: import org.openrdf.query.algebra.MathExpr.MathOp;
09: import org.openrdf.sail.rdbms.algebra.base.BinarySqlOperator;
10: import org.openrdf.sail.rdbms.algebra.base.RdbmsQueryModelVisitorBase;
11: import org.openrdf.sail.rdbms.algebra.base.SqlExpr;
12:
13: /**
14: * The SQL subtraction (-) expression.
15: *
16: * @author James Leigh
17: *
18: */
19: public class SqlMathExpr extends BinarySqlOperator {
20: private MathOp op;
21:
22: public SqlMathExpr(SqlExpr leftArg, MathOp op, SqlExpr rightArg) {
23: super (leftArg, rightArg);
24: this .op = op;
25: }
26:
27: public MathOp getOperator() {
28: return op;
29: }
30:
31: @Override
32: public <X extends Exception> void visit(
33: RdbmsQueryModelVisitorBase<X> visitor) throws X {
34: visitor.meet(this);
35: }
36: }
|