01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 1997-2006.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.query.algebra;
07:
08: /**
09: * @author David Huynh
10: */
11: public class Count extends UnaryValueOperator implements
12: AggregateOperator {
13:
14: public Count() {
15: // FIXME: should we create a separate class for this case?
16: super (null);
17: }
18:
19: public Count(ValueExpr arg) {
20: super (arg);
21: }
22:
23: public <X extends Exception> void visit(QueryModelVisitor<X> visitor)
24: throws X {
25: visitor.meet(this );
26: }
27:
28: public ValueExpr cloneValueExpr() {
29: return clone();
30: }
31:
32: @Override
33: public Count clone() {
34: return (Count) super.clone();
35: }
36: }
|