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.sail.rdbms.algebra.base.RdbmsQueryModelVisitorBase;
09: import org.openrdf.sail.rdbms.algebra.base.SqlExpr;
10: import org.openrdf.sail.rdbms.algebra.base.UnarySqlOperator;
11:
12: /**
13: * The SQL binary shift right (>>) expression.
14: *
15: * @author James Leigh
16: *
17: */
18: public class SqlShift extends UnarySqlOperator {
19: private int shift;
20: private int range;
21:
22: public SqlShift(SqlExpr arg, int shift, int range) {
23: super (arg);
24: this .shift = shift;
25: this .range = range;
26: }
27:
28: public int getRightShift() {
29: return shift;
30: }
31:
32: public int getRange() {
33: return range;
34: }
35:
36: @Override
37: public <X extends Exception> void visit(
38: RdbmsQueryModelVisitorBase<X> visitor) throws X {
39: visitor.meet(this);
40: }
41:
42: }
|